There’s a tax advantage to taking money out of a C corporation as compensation rather than as dividends because a corporation can deduct the salaries and bonuses that it pays executives.
Compensation vs. Dividends: Determining Reasonable Compensation
