The point is chain wear. The chain is worn out along with the chainrings, and they conform to each others shape. If you change the chain, then the new chain wears out faster to to conform to the already worn out chainring.
So unless the cogs are pretty new, I would'nt change the chain without changing the cogs and chainrings. btw, most chains and chainrings of similar sizes are interchangeable.