A self-employed (Selbständig) person is someone who runs their own business, but is not a freelancer (Freiberufler). In most cases, Selbständiger means the same thing as Gewerbetreibender.
Freiberufler and Selbständiger must follow different rules and pay different taxes. They get a different kind of residence permit.