pig is to sty as horse is to what
Stable. If a GROUP of pigs lives in a sty, then a GROUP of horses live in a stable!
Barn? or Stall?
A sty is where pigs are kept. So I would say stall or barn, I don’t know how specific you need to be.
stall or pasture