Which is Peter was a man who denied Christ three times. Peter was just an infallible man. Jesus is the rock, the foundation of the Church. The body of believers is the Church. It was what Peter said the sentence earlier (Jesus is Christ) that was the rock, not Peter himself.
That is not what the Scriptures, nor what Christ, said.