Short answer
A corm does three main jobs. It stores food, it helps the plant get through unfavorable seasons, and in some plants it produces new plants. These jobs are linked. The stored food is what lets a plant survive a dormant period and grow quickly afterward.
Storing food
Corms store starches and sugars made by the leaves during the growing season. When the plant starts growing again, it draws on that store to produce roots, shoots, and in many corm plants, flowers. In some corm plants, this lets flowers appear before the leaves have had time to make much food of their own.
Surviving cold and dry seasons
Many corm plants grow where winters are cold or summers are dry. Above ground, the plant may die back completely, leaving only the corm in the soil. The buds on the corm wait there, dormant, until conditions improve. This ability to live through harsh seasons is part of perennation, the term for surviving from one growing season to the next.
Resting through a hot, dry period is sometimes called estivation in biology, and the same idea applies to some plants as well as animals.
Making new plants without seeds
Many corms produce smaller corms, called cormels, around their base. These can be separated and grown into new plants. This is a form of asexual reproduction, which is one of the two main methods of reproduction. The other is sexual reproduction, which in plants usually involves seeds. New plants grown from cormels are usually genetically identical to the parent.
Why this matters
For gardeners, corms explain why some plants come back each year and why they can be divided. In cold climates, many gardeners lift tender corms in fall and store them dry over winter. The details depend on the species, so check guidance for the plant you grow.
For the plant itself, the corm is a reserve. It can carry the plant through a bad season and get it growing again quickly.
What a corm is not
A corm is not a seed, and it is not a root, although it grows roots from its base. Its role is storage, survival, and sometimes vegetative reproduction, rather than seed production.
In short
A corm stores food, carries a plant through harsh seasons, and can give rise to new plants. Those functions help a plant survive and regrow in the same place year after year.