Maybe somewhat counter-intuitively, swimming is a more relevant skill for the Army than for the Navy. Offshore, being able to swim doesn't help much: you're not going to end up in the water unless you're in some sort of accident, which means that either you're wearing a lifevest, or you're almost certainly going to drown (because you're unconscious or are not found in time). Whereas in the Army you might need to actively cross bodies of water, and therefore you need to be able to actually swim.