Likely home-built.
No temperature cutout on batteries/motor.
Perhaps not paying attention to short term/long-term discharge ratings on battery pack.
HOT Weather?
Cheap batteries?
Climbing long/steep hill under full power.
Motor heated up.
Battery pack heated up.
Internal short?
And, instant flame thrower.