Etymology
Today it means: In a needed manner; necessarily. Full definition →
From needed + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.