Hello, 6th grade children ! Here it goes… the fifth Enigma !

Why kitchens were built separated from the castle in Middle Ages?