I'm not certain about that specific car, but it's probably chemicals that they put on the battery posts and other electrical terminals throughout the engine compartment. Things like Di-Electric grease, which is a neutral (does not conduct electricity) compound that blocks oxygen and lubricates fittings without surface bulk.
There could also be chemicals on and around the battery tray that keep corrosion off nearby metal. If you live on the coast or places that salt the roads, I probably wouldn't wash the engine because corrosion protection could mean rust protection of sheet metal and undercarriage components.
If you live in a rust-free area, then it's probably ok, as long as you don't spray out electrical fittings. I would probably just wipe down the areas rather than spray to minimize water contacting the electrical system.