Curious Magpie and Dartmoor Pony behaviour.

I was at the Dawlish Warren Nature Reserve on Sunday and there are Dartmoor Ponies there grazing over winter. I noticed a Magpie sitting on the back of one of the ponies, but then a bit later noticed that it was sitting on its head and bending down to the eye of the pony, presumably to pick off flies or parasites? There was no aggressive behaviour from the Magpie and the pony appeared to be completely unmoved by its actions - it all seemed very civilised and symbiotic! I can't find any other reference to this specific interaction, so I would be interested to know what others think may be happening.

Richard