IMO it's mainly because of management decisions, like shutting down Stack Overflow Jobs, focusing too much on AI, not listening enough to the needs of the community, ...
Don't forget bad UI decisions. Right now they have a 'Sign in with Google' pop-up on every page, and it doesn't stay gone no matter how many times you close it.