I think you nailed it. The written test can be practiced online in many languages infinite times
People just learn the answers, they don’t understand the rules. This picture, this answer. Similarly, people learn how to pass the practical test, the test doesn’t check if you know how to drive.
Also, not every country has reciprocity
Probably you’ll have to go through the process here