if you have a cat that goes outside, you know that one of the first things it will do is chew on some grass, then come inside and throw up all over your floors. While cats seem to enjoy tormenting their owners, there’s actually valid health reasons why cats might eat grass and then throw up afterwards.

Grass contains folic acid, which cats need. Another reason is that throwing up helps cats remove indigestible items in their stomach such as hairballs. So the next time your cat eats grass and then throws up right in front of you, your cat isn’t trying to gross you out on purpose (although that may be a secondary goal).

Instead, your cat is probably trying to get healthy and vomiting on your floors is one way to do it. Just be thankful that cats know how to use litter boxes so you don’t have to clean up more messes around your house than necessary.

To read more about why cats eat grass, click here.