The XY problem applies when someone asks how to accomplish something. In this case they want to know why something happens; what they’re doing around it is irrelevant.
It’s analogous to asking “why does pizza taste metallic to me?” and getting “why are you eating pizza?” as a reply.
It’s analogous to asking “why does pizza taste metallic to me?” and getting “why are you eating pizza?” as a reply.