Laymen explanation
Some algorithms (such as Random Forest classifiers or naive Bayes classifiers) are capable of handling multiple classes directly. Others (such as Support Vector Machine classifiers or Linear classifiers) are strictly binary classifiers.
If there are N classes, you need to train N × (N – 1) / 2 classifiers.
https://images.app.goo.gl/fvHpGkjQGtFq8RQY7
https://www.amazon.in/Hands-Machine-Learning-Scikit-Learn-TensorFlow/dp/1491962291
https://images.app.goo.gl/XSBL2YKZVQtp8QA4A