Ah, Trashcan Carla's pack. Annoying beast.
One thing to note is that if you have blocked any of the road into Sanctuary, the pack's path is disrupted, and it tries to find an alternate route. If that route is closed off, they'll pop anywhere trying to meet up with Carla (who usually stands in the road next to the yellow house).
I had to change my wall with the door to a gate, and this fixed the problem, so you may need to do a little redesigning.
At Starlight Drive-In I built a fairly large brahmin pen with two Feed troughs. With a gate of course. A brahmin showed up even before I completed the pen, and I made sure to close the gate when I was done. But thereafter, EVERY TIME I go to SD-I, I find that brahmin wandering around by the food stand area. At nightfall, it heads for the pen, but during daylight hours it is always out for a stroll. (And probably leaving fertilizer wherever it goes.)
Why even build a pen if it won't keep the enclosed animals inside? Aesthetically it's the logical thing to build. But in practice? Waste of materials.