In city centers it's usually counter-terrorism: it's easy to throw a timed bomb in a metal garbage can and flee the scene, so they got rid of them (London did because of IRA, and of course now they have Islamic terrorism). Outside of city centers it's about (lack of) recycling: it's easier to check if you're recycling correctly in your home bin than public bins.
It was pretty common with the IRA, apparently. They hid bombs in metal garbage cans and used the shrapnel as a damage multiplier. I think they did that at a commercial center and killed several people.
https://www.bbc.co.uk/news/uk-england-london-23695239
> More than 2,000 bins were cleared from the Square Mile after a truck bomb killed one person and injured 44
While I'm not intimate with the difference between British English and American English, I'm pretty confident "Truck Bomb" does not mean a bomb inside a rubbish bin.
But yes, vehicles are a great vector for terrorism and I'm honestly surprised at how few instances there are of people just running other over. But it's also one of the reasons in the US basically every government building has large concrete planters around them (can't ram a truck through it).
Explosion resistant trash receptacles do exist but they’re pricey so it makes sense London didn’t replace theirs. The most common place to see them is in airports.
Easiest way of doing it is to just hang a clear plastic trash bag from a simple metal hoop - that's what is commonly done at stations in London.
Weirdly, bins were never removed from train stations in Northern Ireland. Bin bombs were never really a thing there, it was generally easier to shut down the railway by setting something on fire at a level crossing (often a hijacked police landrover)...