By looking at a natural experiment, researchers were able to find that work requirements end up pushing the most vulnerable people of the programs.
But Medicaid cut would have required a congressional bill with 60 votes in the senate. They were not going to get that. So they added work requirements which basically added a lot of friction to getting Medicaid. Effectively ensuring a spending cut.
All to give a tax cut to the wealthy.