Yes, that kind of thing happens a lot. It's the "blame game". I've been caught in it more than once. The first time was dealing with a manager that was very politically conservative and really clashed with software engineering types.
The times I've been fired to been put into very bad professional situation were with folks that were either completely nuts managing me or were very judgmental and too narrow minded.
For the sane case, they fail to understand that other folks with very good technical backgrounds can do things completely different than they do can also get important work done. There's a loss of mutual respect there out of their own ignorance.
I left a job because of these circumstances where I was blamed for failing to get stuff done in a manner that an enemy faction would have liked. I eventually showed it to them that I didn't fit that negative image of me that they had, but by then I happily had submitted my notice and moved onto an all our better job, higher paying, more interesting work.