"Gravy train" is an idiomatic expression that is used to refer to any lucrative endeavour.
The word "gravy" by itself was used prior to the invention of the phrase "gravy train" as an interjection of pleasure at something that's easy to do with a great reward, or as an adjective to describe such a situation, à la 'cushy'. An easy task.
In politics, "gravy train" refers to a depraved gorging on luxuries, since someone else foots the bill.