Nutella was similarly invented as a chocolate substitute, to (you guessed it) avoid chocolate tariffs.
My understanding is that Napoleon's Continental System caused a shortage of cocoa in continental Europe, so chocolatiers had to substitute in hazelnuts. This became Gianduja[0], which later were modified to become Nutella.