What does the alternative look like though? Sure tech companies pay engineers well, but there's plenty of other jobs requiring a college degree that don't reach that salary level.
… but not in most cities in CA is the OP’s point, actually not even is most large cities on either coast. Which isn’t to say it’s not possible, you could definitely live well elsewhere on that salary but there is an obsession with coastal cities.