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