Etymology
Today it means: To do (something) in the appropriate manner; to make (something) correct by coming up with the correct answer or solution. Full definition →
From get + right.
Etymology from Wiktionary, CC BY-SA 4.0.