It often isn't. The criminals know that the game theory is such that the criminals know that if they don't actually provide the files when paid, none of them will get paid in the future as people will just assume the files are destroyed unrecoverably and move on. The scam critical depends on you being able to be confident that the files actually are recoverable and thus that paying the ransom is a viable option.
Encryption viruses are probably some of the best QA'ed code in the world.