Most non nuclear powers have a few for the same reason Iran does: having some nuclear scientists and a developed nuclear industry around is handy in case of a, uh, geopolitical "emergency". This is why Poland suddenly became interested in 2023 specifically.
Most countries do not want a lot though - it's too expensive.