In much the same way, tech optimizes for eyeballs and attention. Kids learning how to interact socially in person? Irrelevant. Constant advertising and status comparison driving users to depression? Doesn't matter, or can even be a positive if it drives engagement. There was an article on here just yesterday ( https://news.ycombinator.com/item?id=17745630 ) about how people spend so much time trying to one-up each other on social media, endlessly trying to make it look like their life is better or more fun than it actually is. And of course, even if it sucks a lot of the joy out of doing things, this is exactly what social media companies want.
This isn't a problem with psychology or tech, phones or apps. It'd a core feature of the capitalistic system we operate in, and it warps everything within it.