The stalk of sugarcane is tasty but is never stored away in a granary.
Grain food crops have traditionally been stored in granaries to ensure food security and sustainability. The same does not apply to sugarcane.
Certain things, though enjoyable, are not long lasting.
The proverbs is usually quoted to discourage men from getting carried away with loose women.