I think it's simply that Nimoy got along so well with Abrams, Quinto, etc. on making the previous film. I gather he and Quinto are still good friends. So he was willing to do the cameo as a favor to his friends. If not for that relationship, he probably would've declined.