He's likely paying them a contracting fee.
But, even if it is moonlighting - all employment contracts allow moonlighting with approval. Many firms are rather sparing in granting that approval - but it is a lot easier to say “yes” to an employee request if you know that’s what the CEO wants you to say.