And he did not do many mighty works there, because of their unbelief.
Matthew 13:58 ESV
When Jesus didn’t heal many in his hometown because of unbelief, it wasn’t because He couldn’t. God can act without needing anything from us. When Lazarus was raised from the dead, no one there had faith for that.
Jesus’s mission wasn’t to heal everyone; it was to preach the kingdom in all the towns of Israel. Healing so many actually made His work harder for Him because He had to keep out of towns because of the crowds. Even in that truth, Jesus still healed all who came to Him because of His great compassion.
Jesus always healed all who came to Him. Anyone from Jesus’ hometown who came to Him was healed. It doesn’t say He didn’t do any mighty works there, just not many of them. Why so few? Because they were too close to Jesus the carpenter to be able to see Him as Jesus the Messiah.
In their unbelief, they weren’t coming to Jesus asking for help. That’s where the unbelief limited the healings.