Etymology
Today it means: To seek or obtain revenge against someone. Full definition →
By analogy to scorekeeping in sports.
Etymology from Wiktionary, CC BY-SA 4.0.