Employees get taxed on the value that they vest at IPO, but are locked up from selling for 6 months. The company withholds a percentage, effectively selling a portion at IPO, but it is less than the effective tax rate. I should clarify that this applies to RSUs, not options.
Edit: something similar can happen with options as mentioned, but the mechanics are slightly different.