When you use google maps to choose a route between two locations, and choose walking or bicycling, it also shows starting and ending elevation and a graph that shows changes, so you can see how many and how big the hills are. Also useful, of course, just for finding elevation without any walking.
But how does it know elevation. If a GPS gets signals from 3 satellites, it can calculate location, and if it gets signals from 4 of them, it can calculate elevation. But the calculation is made in the GPS device, such as a smartphone. Google doesn't have GPS devices at any random location the user picks, and it has no way to read satellite signals.
Is there some topographical map underlying the google maps, even though there is no way to display that map wwithin google?