Every single one of us has been created in a way that we need each other. No one is absolutely independent. Yes we are dependant upon Allah and Allah alone to fulfill our needs but He also sends us those people who will help us fulfill our needs.
If we become unwell and need a doctor we need to pray to Allah for a cure. We would still visit the doctor and pray that Allah grants the doctor the ability to diagnose correctly and to prescribe the correct medication.
In the case of surgery we pray that Allah gives the doctor the ability to perform it correctly and grant it success. No matter what we need Allah but the plan of Allah includes that we need each other.
Allah tells us do not forget to be kind to each other, to be good to each other.