The Railway Regulation Act 1844 stipulated that Third-class passengers should be protected from the weather and be provided with seats. [i] This poem was published in the following year suggesting that the railway companies took some time to implement the requirements of the Act.
Reference:
[i] https://en.wikipedia.org/wiki/Railway_Regulation_Act_1844 (accessed 24Jun2019)