Most hub motors need to machine down the truck hanger for the adapter/mount for the motor. Removing material from the hanger, if ridden hard may weaken the truck and increases potential failure - especially for heavier riders.
By putting the motor in the wheel itself, you cannot quickly swap with just any skateboard wheel you prefer. The thinner wheel material will likely make riding more "bumpy" as it won't be able to absorb those impacts without transmitting them to the rider. Those impacts (if you ride rough surfaces especially) may also contribute to premature motor wear/failure.
A hub motor is placing the motor in the wheel - vibrations and impacts to the wheel may shorten motor life. Conditions including rocks, dirt, sand, water all likely would speed wear to the motor.