Etymology
Today it means: Of necessity; for some pressing reason. Full definition →
From needs + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.