Or, maybe something like the FBI knows who's behind it through other means (friendly foreign government, etc.). They contact them and let them know they are going to prosecute to the full extent of the law, long prison sentences. The hackers offer to give the money back in exchange for not being prosecuted, FBI agrees, private key is supplied by hackers.
It's possible they underestimated how serious things would get and got cold feet.
It's possible they underestimated how serious things would get and got cold feet.