What does matter is that the man was called “possessed by demons” (plural). It wasn’t any one particular sin, but many sins, or just sin in general. We do not think of sin as this powerful, but it is. And there are entities responsible that suck us in and grip like iron.