This is interesting new information to me, but I looked it up and Scotland indeed has what many consider a mixed system, quite unique since the U.K. is a unitary state.
I was already aware that Scotland uniquely for the U.K. has the unus testis, nullus testis principle which is ubiquitous in civil law systems, but I had no idea of how far reaching it was.
I think many civilizations independently invented it.
The innovation that law is written down by lawmakers is not that hard to duplicate. If anything, the opposite happened and high frequency of common law in the world is purely because the British Empire was the largest empire to have ever existed and all states that utilize common law descend from the British Empire.
Until the British Empire, common law existed only on the British Isles and the rest of the world had civil law.
You mean England-and-Wales' and Northern Ireland's common law ofc! :)