Most of the $300K/yr jobs are in locations where housing is expensive. SF, NYC, etc. It's not like there are tons of $300K/yr work-from-home-in-Indiana jobs out there.
If your $300K/yr job is in the Bay area, and you like the job and area, it seems eminently reasonable to borrow money to buy a house there.