That's because the water has surface tension. If we drop an object into the water from high above, the object will sink due to the large momentum. If the object is placed flat, it will be supported as the surface area in contact with water increases and the pressure decreases.
For example, soapy water, detergents, etc. can break the surface tension of the water because they contain surfactants.