The MalwareTech write up gives a plausible reason for the developer having accidentally added the kill switch:
> I believe they were trying to query an intentionally unregistered domain which would appear registered in certain sandbox environments, then once they see the domain responding, they know they’re in a sandbox the malware exits to prevent further analysis.
https://www.theguardian.com/technology/2017/may/13/accidenta...
https://twitter.com/MalwareTechBlog/status/86318710471668531...
https://twitter.com/MalwareTechBlog/status/86318907784311603...