I am of a completely opposite opinion, at 24 (now), I wouldn't want to stay in any sparsely populated place.
The likes of NY, Boston are my perfect city. Everything I need is by my doorstep, don't need to own a car (or use it regularly) and can find not-unreasonable rents if I have roommates and don't stay in cheaper locations. (eg. Allston in Boston)
I work in a Boston suburb and can't imagine staying in such a drab place, unless I had a family, kids and all. Almost everyone there is older than me and almost entirely invested in family living. Everything from conversations to activities lack any sense of freshness and feel routine. Don't get me wrong, people seem to be happy there. But, a lot of it hinges on their family and social relationships built with people over many years.
I don't see myself having either of those things at least till I am in my mid 30s. Even then, I would probably live in a condo where human density is larger, rather than suburban sprawls.
In my experience, suburban living comes at the turning point of the exploration-exploitation curve.
People who want to explore, will stay in urban locations and see out new experiences .... Until they start feeling good about a certain local optima and "settle down" on it.
My hypothesis is that tech workers usually slog it out in till they get a job (usually in their early-mid twenties) and then start the exploration phase, that may have come sooner for other majors. As a result they prefer staying in cities for longer and till an older age than other majors.
I have noticed this among my peers, but of course it is anecdotal and have no idea how well it will generalize.