What are the rocks on train tracks for?

The rocks or stones that look like coal on train tracks, do they have a purpose?
10 answers 10