You should also read this part in the same link:
https://www.canada.ca/en/immigratio...tors/diplomatic-official-visas.html#visa-crit
Personal status
An individual's personal status is not normally a primary consideration for the issuance of a diplomatic or official visa (except for heads of state and other relatively rare instances). For instance, a senior official of a foreign government, travelling on a diplomatic passport, should not be issued a diplomatic visa if the individual intends to enter Canada for commercial negotiations with private enterprises, or on a private visit. In that case, the individual would be issued a regular temporary resident visa, if required, or a courtesy visa, if deemed appropriate. Another instance would be a student who is the child of a diplomatic agent serving outside Canada and who enters Canada solely to pursue their studies. If not exempt from a temporary resident visa, that person would need a regular temporary resident visa before entering Canada and may require a study permit as well. This individual would not be entitled to a diplomatic or official visa although they may hold a diplomatic or special passport.