You underestimate how those ideas are born. More often than not, there is an underlying material pretext. Christianity actually has a lot to say about resources for that very reason. Also, wars are fought over resources and then justified with religion by the select few that start them, primarily.