https://geoisp.com/us/
Facts disagree with you.
Cities enjoy tech booms because the catch-22 game of people wanting to live closer to, again, culture, arts, variety, optimal weather, also draws commerce, which means that's where most jobs are.
And what that really boils down to is that as a society, we haven't gotten over the notion that going TO a common work area is somehow mandatory, even for industries where it actually isn't.
This will inevitably change. Silicon Valley, for example, simply isn't going to be able to sustain its self made housing crisis.