Hairballs occur when cats ingest their own hair while grooming themselves. Although hair should normally pass through the cat’s digestive tract (where it is eventually pooped out), sometimes hair remains inside the stomach. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.