This can occur for a number of reasons, but is often used to indicate stress, sleepiness, exhaustion, or to give characters a dark appearance.
Anime Characters With Dark Eyebags - Many anime characters have wormed themselves into our hearts because of their impressive strength and wits.