Myopia occurs due to the inability of light to focus on the retina, and instead, the light focuses behind the retina. This occurs if the length of the eyeball is too long or if the cornea is too curved. When you apply pressure on your eyes, the pressure can temporarily decrease the longitudinal diameter of your eyes by displacing the fluid inside the eye. When this happens, light can focus closer to the retina, resulting in a clearer vision.