The UK Government didn't simply gift the banks money, it provided loan guarantees, and bought failing banks.
Over £1 trillion was made available in loan guarantees, liquidity and to take over the banks.
But most of that money was never used. And the Government got all but £33 billion back.