Three different things getting mixed up in this thread.
A. Deporting foreign national offenders who are serving time in our prisons:
I'm not sure if you realised this in your original post, @Noras, but when offenders are deported, they don't go to prison in their home country, because they haven't committed a crime there. So it's freeing them. Currently they have to serve a minimum 30% here for this reason- to provide a base level of justice for society and the victims.
B. Sending foreign national offenders to serve some of their sentence in their home country (a Prisoner Transfer Agreement):
This is possible but the other country has to agree to this, because (as PPs have noted above), the crime wasn't committed there and so there's no reason why the other country should have to pay for it.
C. Removing people who have breached immigration law and don't have a right to be here:
This isn't deportation, though people (i.e. journalists) usually get this wrong and use that word. It's removal- a completely different process, law and group of people, and not connected to how we deal with foreign national offenders in the prison system.
So, realistically, if you want fewer foreign national offenders in our prisons, you'd have to tell victims to be content with seeing them serve even less than 30% of their sentence. Not hard to see why no government has done that.
Or we could throw more money at other countries to persuade them to agree to more Prisoner Transfer Agreements- but then it doesn't save any money.
Seems like maybe this stuff actually isn't so easy after all.