Why do we get under eye bags?

Older people often have bags under their eyes. Also young people can get them if they have slept badly. What is the reason for under eye bags? If you are tired, for example after a really bad night's sleep, ...