Had I a goat, sacred or otherwise - and I may have - I would probably confine it by means of a fence, rather than asking my community to invest a huge effort in building a ditch. Anyway, goats don't mind ditches, once they erode into a slope. Even the sheep at Silbury can get to the top of that. Not sure about the climbing skills of Littlestonian porkers, or porkies either...
So I can't think of a purely practical reason for building ditches, ergo there must be another motivation, in part at least.
BTW is there any evidence of whether the sides of all ditches were truly vertical originally, or just some of them?