Is hay essential for guinea pigs and why?

Guinipigs need hay daily. I have two male guinipigs and they love it,sometimes there cages come with hay feeders.Why?Because it almost helps wear down there teeth and its a good source of vitamins