I worked for a company that based your annual bonus on the amount of overtime you put in. Not productive, mind you, just hours. At the end of the year, they would tally up the hours you worked, and those with the most hours at their desk got the biggest bonuses.
Being new to this, I asked my boss: "If I do everything right, and my project never needs rework, and my clients are happy, and all my projects are profitable, and I go home on time every day, will I get a bonus?" "No."
"If I screw up, my projects are late and over budget, and I'm working a lot of hours because my clients are pissed at the low quality of work I do, and my projects constantly lose money because I'm an idiot, will I get a bonus?" "Yes."
True to form, my bonus for the year was $50, in spite of being one of the most profitable employees in the organization. I left shortly thereafter.