2 Samuel 22:2 (among others) calls God "Petra."
Your oversimplification of the text has led you to confusion.
"You are Peter [petros, little rock, a boulder, larger than "lithos"], and upon this rock [petra, mass of rock, a cliff or ledge, distinct from petros] I will build My church."...