Coins over the eyes of the dead have multiple different purposes wording to different cultures. I think most often in western pop culture, it would harken back to Ancient Greek belief that it would serve as payment for the ferryman to take you across the River Styx.