This isn't even an exploit.

It's is absolutely intentionally put into the game by Larian. They do it with all their games, they put in a bunch of tools for players to use however they see fit and let players do clever stuff with them.

Heck, I'd allow with in a tabletop game so long as the players took the extra step to have those barrels buried.