Certain components in the engine compartment can be very hot, e.g. the engine, the radiator and parts of the exhaust system.
If engine oil comes into contact with hot component parts in the engine compartment, it may ignite.
Too much engine oil can damage the engine or the catalytic converter.