For you are not setting your mind on the things of God, but on the things of man.
Peter just heard that he was to be the rock on which Jesus would build his church. He was feeling good, like maybe he had some advice to give for this whole venture. He's just trying to keep the plan on track for the revolution and installment of Jesus as King and Peter as right hand man!
But Jesus had other plans.