I had a similar experience with coffee shops. I was working from home for a stretch and discovered (almost by accident) that I could focus well at a coffee shop in spite of the noise. It gave me a mild sense of urgency for whatever task I had chosen that helped me tune out the distractions. It was mostly quieter at home but there always seemed to be more potential distractions. I found going once or twice a week helped me stay more focused overall - also for when I was home all day.