It comes by it name “Cattle” Egret because it will follow livestock to feed on the insects they disturb. Sometimes you will find it perched on the backs of the livestock.