He had 2 options: lower his demands in order to get a move, or change his attitude, stop publicly criticising the club and work hard to compete for a place in the team.
He has chosen to do neither. He is not bothered about getting first team action. He is happy to take the money for effectively doing F all. What’s happened is all on him.