Because some idiot ran a half-assed "cost-benefit analysis" and deduced it would be cheaper in the long run to pay the ransom and get everything back up immediately.
Then it turned out that everything didn't come up immediately because the decryptoware was slow and unreliable.