Accuracy is the first metric everyone reaches for and often the wrong one.
It counts every correct answer equally, whatever kind it was.
That is fine when both classes turn up about as often as each other.
It falls apart the moment one class is rare.
A test for a disease that one in a thousand people have scores 99.9 percent by always saying no.
That model is useless and its accuracy looks excellent.
The number also hides which kind of mistake is being made.
Two models on the same data can share an accuracy and behave completely differently.
It says nothing about how confident the model was.
Being barely right and being certain both count the same.
It also depends on the threshold you happened to choose.
Move the threshold and accuracy moves, though the model has not changed at all.
Report it next to the class balance, or it means very little.
For rare events, precision, recall and PR-AUC tell you far more.
Use it as a sanity check, not as the thing you optimise.