You're right - perishable goods have to be shipped fast. Your bananas, berries, fresh fish, and not-fron-concentrate juice can't be on some slow-steaming container ship with the furniture, clothes, building materials and vehicles.
The GPUs can though.
And the GPUs are such high margin that they all take an airplane anyway.
Rice is a nonperishable grain. Grain ships in neither of those. Grain is shipped in bulk carriers