That isn’t what it says......(mr. SOLA SCRIPTURAL) ......humor
Thats exactly what it says.
In Matthew 16 Jesus is talking to all of the Apostles. They were all asked the question of who they thought He was. Though Peter was the one who answered for the group Jesus was talking to them all. When Peter said that they believed He was Christ the Son of the Living God Jesus replied and said that it was not flesh and blood that had revealed that to Peter but that it was my Father which is in heaven. He then says to Peter and thou art Peter, acknowledging that He knew who Peter was just as Peter knew who Jesus was. Then Jesus, referring back to my Father which is in heaven, says, upon this rock I will build my church.