Swimming fully underwater is faster than swimming at the surface because you avoid creating surface waves and drag. At the surface, part of your energy goes into making waves and pushing water aside. Underwater, you can maintain a more streamlined position with reduced drag, allowing faster movement.