I would say fossilization
Answer:
I believe it was formed from the water pressure over time leaving the shell dent in the rock. Sorry if I'm wrong.