I’m kind of surprised so many people are shocked by this. I know of one company where dozens of people were fired because their email was scanned for external job interviews and the CIO had a report, which he used to prematurely cut staff when he needed to save budget.
The only difference now is that the tech is smarter and cheaper so that you don’t need to pay as many people to spy on their coworkers.
Your defence against this is to find a job where you’re too valuable for them to do anything. As with any jurisdiction where there is at will employment.