Ouch, that's definitely not a pretty sight, it's just as well it was the rear brake and not the front!
I can see two possible reasons for this particular failure:
1) A flaw or defect in the alloy casting
or
2) An inherent structural weakness in the design
There must be thousands of Smart Pies in use and this is the first failure of this component that I have come across, so I would say the failure was most likely the result of a poor casting rather than a weak design.
Wombat, can give a rough estimate of what the combined weight of rider, bike, battery and luggage etc. was likely to have been at the time of failure? Also, were you slowing down on the flat or going down a steep hill?
Was your rear disc brake very fierce and prone to locking up the wheel?
Alan