One theory is that Bankman-Fried took the idea that you should make as much money as possible and donate it as efficiently as possible, and ran waaaaaay too far with it, to the point where committing outright fraud to make money to donate made sense to him, on the apparent grounds that the potential good that could be done with it was worth the risk to himself and many others.