This Psalm was meant for preparation for the battle for the armies of Israel.  Imagine this Psalm being read to the King in the temple with his soldiers present before a major military campaign.