They're mostly air inside. And air's lighter than water.
Every kind of substance-- whether it's air, or water, or dirt-- it's got its own weight. And lighter substances'll float or rise over heavier ones. It's why, say, oil doesn't mix for long with water in your soup, even though they're both liquids.