The reason a straw in a glass of water appears bent is due to the refraction of light. When light travels from the air into the water, it changes speed and direction, creating an optical illusion that makes the straw look bent or broken. This is a classic example of how refraction can alter our perception of objects in the real world.