The hacker returned it because he got convicted by the spirit of God that what he had done was not a good thing.
I believe he was unsettled in the process lacking no peace at all hence deciding to the right thing by returning what didn't belong to him.
Thanks for sharing @yalapapi.