In a nutshell, it was invented by the Koucky Brothers in Czechoslovakia (the Czech Republic today).
The Koucky brothers, who had previously primarily designed military rifles and machine guns, basically took John Browning’s incredibly successful Browning Hi-Power pistol and made some critical improvements.