Not just heroin dealers: contract killers also benefit society according to this logic. They're in business, their customers give them money for a service the customers think is valuable, etc. They may not benefit you directly, and may make your life worse (if you're their target), but bruce thinks they're fine since they do "useful" things and have paying customers!