The vast majority of people, and therefore the majority of politicians, are morally imperfect. They respond to incentives. Very few people will do the right thing just because it's the right thing. If you want a large political coalition, you have to work with flawed humans.