When you give yourself weakness potion effect above 1, you still can't hurt mobs by punching them, but if you shoot them with bow they die or lose their health. Even if they are large number (like 200 or 1000) they still lose their health if you shoot them.
Weakness applies only to melee weapons.