When the European states colonised the world, they also brought with them their legal codes. Most countries around the world use either English common law, the French civil code, or the German civil code.
Furthermore, all the top 100 global law firms are located in jurisdictions covered by the English common law and the laws of New York State.