Seems likely that safe access for maintenance makes this unappealing economically. Likely easier to have wider rail right of way and then put a panel farm on the side.
And getting approval to widen the right of way, where it’s even physically possible, and issues around flora suppression.