He saith unto them, But whom say ye that I am? And Simon Peter answered and said, Thou art the Christ, the Son of the living God. And Jesus answered and said unto him, Blessed art thou, Simon Barjona: for flesh and blood hath not revealed it unto thee, but my Father which is in heaven.
-- Matthew, catholic chapter sixteen, protestant verses fifteen through seventeen, as authorized by King James
I have manifested thy name unto the men which thou gavest me out of the world: thine they were, and thou gavest them me; and they have kept thy word. Now they have known that all things whatsoever thou hast given me are of thee. For I have given unto them the words which thou gavest me; and they have received them, and have known surely that I came out from thee, and they have believed that thou didst send me. I pray for them: I pray not for the world, but for them which thou hast given me; for they are thine. And all mine are thine, and thine are mine; and I am glorified in them.
-- John, catholic chapter seventeen, protestant verses six through ten, as authorized by King James
You are looking into the future, not at the moment for which the questions were asked. Satan was influencing Peter when he thought he was smarter than Jehovah Jesus Christ.