Microsoft took a mezzanine round a few months before the IPO. The reason usually given is so that they'd have connections to investment bankers to manage the actual IPO, as well as people with a stake in making sure that the IPO price was as high as possible.