I think with the AA thing it might have to do with loving with detachment. This actually happened to me and I think it was a combination of giving up completely and also realizing how much my self-interest was involved in the outcome - expectations about what sobriety would mean for me as well as wanting to be the savior. An interventionist pointed out to me that there were lots of people surrounding my partner trying to take care of them which prevented them from taking care of themselves, made them feel like a child instead of an adult - and thus was disempowering. We were sending a subtle message that they weren't capable of taking care of themself.
The default network is causally linked to creative thinking - https://www.nature.com/articles/s41380-021-01403-8
Creativity and the default network: A functional connectivity analysis of the creative brain at rest – https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4410786/
Some articles aimed at a general audience:
The Creative Brain is Wired Differently – https://neurosciencenews.com/creativity-networks-8355/
Eureka! – https://www.psychologytoday.com/us/articles/201503/eureka
That's how solving problems happens after "giving up", and this is well-documented in cognitive studies. It's called the "default mode network"[1] and it's possible to learn to activate it.
As for your example "Give up trying to cure your alcoholic and your partner decides to go to AA on their own", that's an entirely different mechanism, involving human social relations and self-interest. I don't have a good explanation, but have you ever been in a situation where someone told you to do something that you knew was good for it, but you resisted doing it? Maybe you justified your refusal as being skeptical, or just didn't like being told what to do.
1 https://www.wired.com/2014/08/shower-thoughts/