The most relevant response to why railways grew rapidly in Britain during the Industrial Revolution is:
They allowed the Agricultural Revolution to take off.
The development of railways significantly enhanced the transport of goods, including agricultural produce, facilitating market access and supporting the broader economic changes of the period.