Or - and I hate that the world has made me this cynical - wannacry was cooked up by the NSA or some other US TLA and now they're getting a biut of payback for it being shut down so quickly.
The incompetence, malice and pettiness of US spy orgs all have precedent.