It's possible he unfollowed you for attention, but it could also be for other reasons. Everyone has different motivations and thought processes. He might have wanted to take a break from social media, or maybe he just didn't find your content interesting anymore.