Did you forget to use detergent?
If your glassware smells, something’s wrong, as detergent uses water softening agents, enzymes, and rinse agents. Dishwashers do need to be regularly cleaned, and I’ve never met anyone who does so.
There’s also the question of the dry cycle, which is crucial if you live in a high humidity environment. Otherwise things will get musty, like leaving clothes in a washing machine.
Restaurants use dishwashers (though generally not the same type as home units, but small shops have similar commercial units with fast cycles) - have you experienced this there?
Edit: For some reason the “default” way to store glassware in cupboards is upside down. I’ve always found this causes things to smell musty with the trapped air. Even worse in cabinets with no covering on the wood - that’s just nasty. Or with old shelf paper that never gets cleaned, so there’s all sorts of grubbiness making smells.
Even in dry climates I’ve found upside down causes funk.
To be fair, I’d be addicted to fixing cataracts, but only twice. 😆