The yellowish stuff is called Kosmoline, Its basically a protective coating to help the durability and corrosion resistance of the aluminium. Aluminium can corrode if the aluminium oxide layer is broken down and cant regenerate. This will happen at certain PH levels. If youd like to try it put some aluminium in engine decrease, no matter how watered down, a smooth surface will start to pit. There are other factors that influence this too though.
In short i think it was placed there to help protect the aluminium from cleaning with most engine degreasers and also used as a protective coating for scratches and alike.