By professional training, experience, and/or expertise. Often used as a contrast to other work one undertakes. Joe is a carpenter by trade, but he also gets a lot of side work as an electrician. I'm an actor and a writer by trade, but I work in the restaurant to make ends meet.
See also: trade