The idea is that people acting on behalf of the sovereign deserve some of the immunity that the sovereign itself takes advantage of. The immunity allows agents of the state to act with less fear of reprisals, especially in edge cases, or when dealing with powerful counter-parties.