Why is St. Joseph the patron saint of carpenters?

St. Joseph, himself, was a carpenter.