That median includes condos, which won’t be doable for families.
If you want a house, median is above $2M: https://sanjoserealestatelosgatoshomes.com/mountain-view-ca-...
Another thing to consider is that housing stock in Mountain View is very old on average, so the $2M price point doesn’t get you a mansion, but rather a very modest house (especially when considering that we are talking about TWO MILLION DOLLARS after all)