Etymology
Today it means: In the manner of an idiot; idiotically. Full definition →
From idiot + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.