A monthly payment on a mortgage of $1mm is ~$4k. That’s the same cost to rent a 2-3br in the 1k-1.4k square foot range in much of San Francisco.
Napkin math suggests that it’s a reasonable payment for those >=$170k annual income, which is very common in software in the USA.