He did it because he wanted to sanctify work and teach us that work is honorable and pleasing to God. However, neither Jesus nor St. Joseph were workaholics. Workaholics are of no benefit to themselves, the family, or society. God does not delight in a workaholic.