It’s good to represent railroads. They pay their legal bills and pay them promptly.
Lincoln charged fixed fees for standard legal services, and not very high fees at that. The economic reality of the time and place meant most of his clients couldn't pay a lot. I imagine the railroad got charged the top of his sliding scale hourly rates. That must have been nice since he was working hard to restore his finances after spending so much time doing politics.