You're right that all matter in the universe was created at the Big Bang, including the atoms that eventually formed into rocks. However, rocks themselves form and evolve over time through geological processes. When scientists say a rock is a certain age, they mean that's how long ago it formed into the rock that it is today.
The "age" of a rock is determined by measuring the decay of radioactive elements within the rock. As rocks form and cool from magma, they lock in certain radioactive elements. Those elements then decay at a fixed, known rate. By measuring how much of the radioactive element and its decay products are present in the rock today, scientists can calculate how long it took for that amount of decay to occur, which tells them how long ago the rock solidified and locked in those elements.
So while the atoms and elements that make up the rock were created at the Big Bang, the rock itself - the solid, integrated geological formation - formed later. The age is a measure of how long it has been a rock. The processes that create rocks include:
• Solidification of magma or lava. As molten rock cools and hardens, it forms an igneous rock. The age is measured from when it fully solidified.
• Sedimentary deposition. As sediments accumulate and are compressed into sedimentary rocks like sandstone, the age is measured from when the sediment was deposited.
• Metamorphism. As rocks are exposed to high heat and pressure and morph into metamorphic rocks, the age is measured from when the metamorphism occurred.
So in a way, you can think of the "birth" of a rock being these geological events, not the Big Bang itself. The age dating tells us how long it's been since the rock "came into being" in its current form. Hope this helps clarify! Let me know if you have any other questions.