Security researchers can sometimes create free decryption tools for ransomware.

Someone leaked the decryption keys for the program online

http://www.cio.com/article/3176589/security/free-decryption-tools-now-available-for-dharma-ransomware.html