Because being miserable for 8 hours a day at work will leave you drained and depressed for the other 16. That makes socializing hard.
Being exited and happy for 9 hours a day at work abd coming home with a sense of accomplishment can actually give you energy to do more for the othe 15 hours.
Based on personal experience.