Dairy farming and the milking of cattle - once performed largely by hand, but now usually replaced by machine - exploits the cow's unique ruminant biology. Cattle are ruminants, meaning that they have a digestive system that allows use of otherwise indigestible foods by repeatedly regurgitating and rechewing them as "cud". The cud is then reswallowed and further digested by specialised microorganisms in the rumen. These microbes are primarily responsible for decomposing cellulose and other carbohydrates into volatile fatty acids that cattle use as their primary metabolic fuel.
The microbes inside the rumen are also able to synthesize amino acids from non-protein nitrogenous sources, such as urea and ammonia. As these microbes reproduce in the rumen, older generations die and their carcasses continue on through the digestive tract. These carcasses are then partially digested by the cattle, allowing them to gain a high quality protein source. These features allow cattle to thrive on grasses and other vegetation.