It's not technically a spout, but a blowhole. Whales have one or two blowholes on top of their heads that they use to breathe air. When they come to the surface, they exhale air through their blowholes, which creates the characteristic spout of water vapor.