Sure, the issue is that most loops are farily simple and putting the logic in the middle of a function far away from the iteration is bad.
It's the same reason why I use let instead of a function when I want to encapsulate simple state across multiple statements. Sure they are both the same fundamentally, but one is much easier to reason about.