Why even have a head gasket?

Posted by indelico@reddit | askcarguys | View on Reddit | 66 comments

This could be an incredibly stupid question which would reveal my extensive gaps in knowledge of how a combustion engine works. But all is good on the quest for knowledge.

Why do engines need a head gasket? Why not make the engine out of one piece of metal where the compartments are insulated from eachother?