I think there are two combined factors, but I am not a pop culture historian, so take it as only its two cents worth.
The first is that RPGs were born from the wargames genre. D&D's predecessor, Chainmail, was a fantasy and hero focus take on medieval wargames rules. As the focus shifted...