This saying is spammed all over rehab and recovery (AA/NA) groups. If you hear someone saying it, odds are high that is where they picked it up, especially if they say it a lot like it conveys some deep wisdom or something.
Thus the admonition that someone is "insane" if they expect change when they are doing the very same things they did when they were dependent.
Also, the phrase requires predicting the future of a complex adaptive system, aka. a human. If 12-step groups besides Codependents Anonymous actually spent time looking at codependency, they'd be able to catch the glaring future-tripping nonsense in the idea.
While your "complex adaptive system" may have escaped addiction, others usually don't, and that statement is useful for them.