Etymology
Today it means: As a substitute; by way of substitution. Full definition →
From substituting + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.