If you have elecreic hub motors there is no room for these between the hub motor and wheel.
Ergo, the existence of an off hub gearbox neither forces nor requires a chain to be used to transfer power.
The arguments for why use a chain Vs why use a shaft are not predicated on the existence of a gearbox.
If you have elecreic hub motors there is no room for these between the hub motor and wheel.