The goal of all companies is to make more money. Nobody likes getting rid of people, actual people (managers) have to do it, and they hate doing it.
It's possible that a lot of people get laid off because of AI, but it's also possible that Javin's paradox kicks in and employment goes up. Nobody knows yet, but I hope for the positive outcome.