I don’t believe there is a quest that makes cattle appear on the ship, I think it’s just a random occurrence, such as Nyoka being drunk, or Ellie and Felix drinking together. I hadn’t experienced a single bug prior to this exact glitch happening to me.