How about another explanation. Your government is totally opposed to helping citizens for “free” (let’s ignore that most government revenue comes from good ol’ taxpayers) when the alternative is to farm out the provision of expensive services to lobbying corporates.
They’re more than happy to punish people however. For free _and_ for corporate profit.
Hope this helps.
At least "the wall" passes the first smell test: Want fewer people move between A and B: Build wall between A and B. It just falls apart when you fill in the details (visa overstays, tunnels, ladders, etc. etc.)
In contrast, baby-rapist-murderers obviously do not deserve free, very costly surgeries for non-life-threatening[1] conditions that non-murderers don't get subsidies for. For starters, they're baby-rapist-murderers.
But anyway, I just picked one example. I'm sure the Wall costs are thousands of times more than just trans surgeries for prisoners. That doesn't mean there aren't many, many billions wasted on Team Blue boondoggles.
[1] And no, these surgeries don't decrease chances of suicide. Studies don't all agree but some have found that they increase those chances. https://pubmed.ncbi.nlm.nih.gov/38699117/