In this Surah Allah SWT makes the two things inseparable you can’t separate these two things if you are good to Allah you have to be good to people he fused these two things this is the logic of the Quran it doesn’t let anyone fall into these extremes and traps.