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