Minecraft wiki entry for Skeleton, associated text: Skeletons typically stop moving to shoot, making no attempt to avoid being hit.
An underwater skeleton uses a melee attack because it is unable to use a bow underwater.
A skeleton on land shoots quickly at a player in water. The rate of fire increases as the player approaches, making combat difficult due to the knockback.