A computer programmer, on the other hand, is paid to produce something. They aren't entertaining anyone (except themselves). The act of producing code doesn't matter to the person that wants a binary. The binary is what matters. So if a computer can out-program a human, then the human is in trouble. So it's different.
But, nothing is stopping a human from programming for entertainment purposes. And nothing is stopping humans from being entertained by watching other humans program, maybe competitively. Like chess, or basketball. Or from getting together and solving programming problems. Then it doesn't matter that a computer can run circles around them, and nobody can tell them to stop doing it.
I get it, though. Younger people in tech should be worried.
But I don't really understand the "grief" by people who say they're losing their hobbies. Like the top comment in this thread: https://news.ycombinator.com/item?id=50158159