Toast smells different from untoasted bread. A browned mushroom has aromas that a gently simmered one may not. Heating can create new flavour compounds as well as change texture.
One family of reactions behind those changes is called the Maillard reaction. It is useful to understand, but a meal does not need a dark crust to be enjoyable or properly cooked.