How geologists determine old things

How are geologists able to determine how old things are and what their purpose is? Other than what we know from manuscripts or passed down knowledge. How do you think geologists or other individuals discovered the nutrient benefits of certain minerals? Do you think it was by accident?