Stables are needed to research horseback riding which is needed to build horsemen. They also improve cavalry speed.