It only takes 4 justices to add a case to the docket.  It is possible that the justices saw this as an opportunity to resolve ambiguities among the Circuits.  The four strong conservatives might want to end the advance of "gay legal rights".  Maybe Kennedy decided he would postpone his retirement until after the case is resolved.