baking always confused me because

making solidy thing hot makes liquidy thing

so

why do making liquidy thing hot make solidy thing?