They lightened the ship. It was needful to beach it in just as shallow water as possible.
And cast out the wheat into the sea. Hence the cargo was thrown overboard. As might be expected in an Alexandrian ship, the cargo was wheat. Egypt was then the granary of Rome.