When you turn a glass upside down and trap the air in it by putting it in water, the air space inside the glass would become compressed as you take the glass down to 10 meters/33 feet. The pressure of the water at that depth will increase, causing the air inside the glass to be compressed.