it has to be separate and uses a gasket for safety, strength and manufacturing.
how would you cut valve seats etc?
would cost way more to make if it was in one piece and fixing one area would be the whole engine out and strip for a small problem, instead of a gasket and a small strip down.