I guess 8 hours of sleep was necessary and you were strengthened afterwards and became healthier.
I once slept 12 hours, lol, when I worked (baked cakes and decorated and did other activities) for 2 days and had 2 hours of sleep in between. I felt good when I woke up, like a brand new ME.