When I first started brewing, I had a lot of beers with head-retention issues. One of the worst offenders eventually developed a noticeable off-taste. I think it could be a sanitation issue. I think there's a range where your beer can be infected, but below taste threshold, but it can affect stuff like clarity and head retention.