 When the president is acting upon the powers delegated to him as the executive, he is immune from prosecution for doing the job that he was elected to do by the people of the United States. It is a protection. It is a check and balance. It is a stopgap that keeps us from becoming some two-bit dictatorship that's falsely called a republic in, like, South America or China.