Splitting the power between the two parties creates incentives to compromise. The essence of divided government is having both parties responsible for governing, they each have an equal opportunities to promote their decisions. The parties tend to differ on major subjects, this allows both perspectives to be brought to the table and examined.
In order for a legislation to pass, it needs support from both parties.