People still play chess, even though computers have conquered us in that domain.
Programming is still something we can spend time on. It's ultimately our choice after all.
The people who were doing it for money will move onto something else, and we'll be better off for it.