Charity (Zakat) is the only one of the Five Pillars of Islam that has nothing, or next to nothing to do with worshipping Allah except, perhaps, in an indirect sort way, when you give it in furtherance of His Cause.

47:38 There you are; you are called upon to spend freely in Allah’s Cause, but some of you are niggardly...
 
Cynics might argue that Allah instinctively appreciated the strategic value of helping people in need in recruiting for His Cause. An understanding of the persuasive power of giving that was not lost on the Islamists who, during the catastrophic flooding in Pakistan in 2010 disrupted aid from Western Countries while facilitating the distribution of the inadequate contributions from Islamic regimes; or in Somalia where Allah’s militants stopped food shipments from Western nations from reaching famine ravaged portions of the country.