Are contact lenses just for cosmetic reasons?

Sometimes that is the case but contact lenses can offer huge practical advantages for different prescriptions. Some conditions (e.g. keratoconus or corneal grafts) will achieve much better vision with contact lenses than glasses. In extreme cases, patients can be legally blind even with spectacles but see beautifully with contact lenses.