Etymology
Today it means: In an unprofitable manner. Full definition →
From unprofitable + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.