The two greatest movie trilogies in cinema history are very different beasts, but have one thing in common that partly explains their success.