Rocks are the natural reservoir of phosphorous. They contain phosphorous in the form of phosphates, which is related in the soil with the weathering of rocks.
When rocks are weathered, minute amounts of these phosphates dissolve in soil solution and are absorbed by the roots of the plants.