Its main function is to allow a direct flow of air to the engine, hence the need for it to be an upraised component to effectively channel air to the engine compartment. It may be purely decorative when its closed, or serve to enhance performance in several possible ways.