Some browsing of Dawn.com archives from October 2021 through April 2022 would shed light what happened. The Victor Frankenstein military decided to wash their hands off their creation Mr. Imran Khan. Imran begged and begged General Bajwa to keep the erstwhile coerced parties like MQM to prop up Imran's very unpopular regime. Pakistanis are too restive and wanted Imran to deliver miracles. He couldn't and no one can in just a few years.
It was much worse than that. A leaders visibly working and striving to deliver is different from a person who takes things for granted, works barely for half a day, lives in delusions and believes in lies, replaces performance with black magic rituals, and above all falls to moral lows by turning a floor of PM house into a prostitution hub. His mentors were utterly regretful while seeing the clear writing on the wall.
Of course, the biggest stack-holders in a security state like Pakistan are the security forces. Fighting a ten-times bigger enemy requires performance in every field. The fool that they brought in while hoping for miracles turned out to be a brainless filth who couldn't get out of his sex fantasies.
The first thing they did was revoking their support. They were managing everything - from roping in or coercing the MNAs/Senators for legislation to repeated damage controlling on foreign/diplomatic front - for their love and crush.
Of course other parties (forced-allies and the opposition) soon became aware of the monkey hanging in the air without a support. So, the monkey was thrown out of the window with the stick of a constitutional process, i.e. no-confidence move in the national assembly. Rest is well known to everyone. In short, rather than learning from his mistake, the monkey started acting as a monster to take on his own creators and the state. Running on that rather foolish way, he committed so many serious offenses and grave crimes. Regardless of what the brainless cult followers say or believe, the monkey will be made to face the law for many of those crimes.