Etymology
Today it means: A formal affirmative response, addressed to a man; yes. Full definition →
From yes sir.
Etymology from Wiktionary, CC BY-SA 4.0.