I'm not sure if shrapnel projection avoidance was the number one reason in those instances since the bombs were already prepared with nuts and bolts as shrapnel but they definitely allowed large devices to be easily hidden in plain sight.
I can't remember how long it lasted but for what felt like decade most trash cans in Paris became metal circles with transparent plastic bags awkwardly hanging from them so the contents could be easily seen and it would be much harder (in theory) to hide a large explosive device in them. This resulted in a lot of mishaps with trash dropping all over the floor. Apparently it also worsened rat infestation since Paris' most recent trash can redesign focused on tackling this issue [2].
[1]: https://en.wikipedia.org/wiki/1995_France_bombings
[2]: https://www.cnews.fr/france/2019-06-02/paris-3600-nouvelles-...