Why didn't Bezos just stash his assets somewhere hidden so that he wouldn't have to give $38 billion of it to his ex?
Because it doesn't work that way at that level of wealth, especially for tech CEOs. You can't just hide billions worth of shares in a company.