Why the dead body float on the water?

Many gases produce in body of human. When the man die the water enter the human body and there is no way for air to diffuse out of the human body .As the gasesare lighter so they try to diffuse out of the water due to this the dead body floats on water