Etymology
Today it means: With, or as, a question or query. Full definition →
From querying + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.