I'm not 100% sure, but I believe the sentence means that he doesn't drink beer because (for some reason) the girl is not okay with it, and he chooses willingly to not drink it.
What you're saying implies more that she was the reason he didn't drink beer, but in a more negative context.