Why do they say "Keep your eyes open" when your dying?

I see it in movies and tv shows all the time, paramedics pleading for the victim to "stay awake and keep your eyes open."

What happens if we close our eyes? Do we die when they close? Is it hard to keep your eyes open?