why does the water in a swimming pool look more shallow from the outside than when you step in? Explain this phenomenon

look up Snell's Law. The light bends as it emerges from the water, so the apparent depth of objects (like the bottom of the pool) is less than the actual depth.