Why is Saint Joseph the patron of carpenters?

Because he was a carpenter.