Etymology
Today it means: The top part of a railway rail; the part of the rail the wheel runs on. Full definition →
From rail + head in the sense of top.
Etymology from Wiktionary, CC BY-SA 4.0.