I don't quite see how under those circumstances, they were able to build "a more powerful army than many European countries", unless you talk about Luxembourg or the Vatican.
In terms of Hamas's army being more powerful than that of many European countries, I'll respond to that below.
And the Wikipedia article you cite has been manipulated by a band of ideological editors and is not reliable, and has no value (inverse value?) as a citation.