TL;DR from what I can tell:
They loaded the user email address into the model context in Claude Code, because users wanted it to correctly generate that in certain places, like when documenting that it was the user who made a certain change.
But webpages can ask for the e-mail address to be sent along with the user agent and so the model just, well, did that.