IK took the Bajwa's support for granted. The military did most of the work to keep the IK govt afloat during the last 4 years than IK himself. He'd simply not bother about his allies as he though Baj and Faiz would keep them in line for him. And the allies always asked military for their next move as repeatedly pointed by PMLQ, BAP and MQM. The allies were only invited for dinners when his government was either in risk or he saw him losing the VONC. But as Kamil Ali Agha said, "We are not the allies of the PTI, but the GHQ". When you'd trust the advice of your wife over the man who effectively ran your government, things are gonna get ugly fast.
Army simply rolled back their support to put IK in his place.