This is very true. It happened to me some time ago, that I was performing very poorly - at least according to my team (I think it is at least partially true but there were circumstances) Instead of telling me so I have a chance to improve, my boss just fired me during my probation time. If I would have known earlier they are not happy I would have adapted my work style according to their expectations and tried to please them. This way I didn’t even receive a chance.
Context: I just started a new job and then the first lockdown due to corona happened. Nobody was prepared to onboard me properly. I was a junior developer, but in hindsight I believe they expected a senior developer