Etymology
Today it means: Undeservedly; in a way that is not warranted. Full definition →
From undue + -ly or un- + duly.
Etymology from Wiktionary, CC BY-SA 4.0.