There was this political party x who was a member of (mis)ruling coalition.
A series of scandals involving that party came out. Ministers after ministers from that party had to resign.
Still the party didn’t pressurize the government by withdrawal of support.
You are wrong if you say “greed of remaining in power”.
At the end there was no member of parliament from that party was left un-resigned. How would it withdraw the support?