Bonuses should be variable compensation, only paid out when
1- the employee, or unit the employee is in, meets its performance goals, AND
2- the company is profitable overall.
At some point, however, bonuses on Wall St. have become the norm, as opposed to an "at-risk" component.