You float more easily if you try to keep the volume of air in your lungs higher, and if you're panicking, you're probably taking small, shallow, quick breaths, making it harder for your body to stay afloat.