Exiles will target barrels, even if there are enemies alive, I assume this has something to do with barrels having lower HP
It's usually if they are set to nearest or low max/current HP they'll go for them first. You can work around them in targeting but I should maybe add a system that deprio them for targeting!