Ostensibly, the funding to AI (especially AI safety) forms a key part of the motivation for SBF's crimes. Now, "motive" is never simple, but it's likely at least a factor in how SBF justified the crimes to himself. This was the end to supposedly justify the means.