Why didn't the emperor make the primarchs immune to chaos?

He already had uncorruptable custodes, so he was clearly capable of doing so.
That means leaving the primarchs vulnerable was a choice he made.