The market is looking for certainty, in some shape or form. Divided government usually leads to gridlock, which is better than extreme policy on either end of spectrum (that would causes a lot of uncertainty).