Etymology
Today it means: Without being paid; unprofitably. Full definition →
From un- + gainful + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.