I'm not sure what the correct psychology is. Add together 'shell shock', depression, a continuous fear of impeding death, repeated exposure to unimaginable horrors, separation from home and family for years at a time, and despair at ever reuniting with your loved ones. I wonder at those able to endure all that, and end up anything like normal.
You also have to assume that a certain percentage of the soldiers would be or already have been rapists in civilian life, and now they perceive great opportunity in that regard.
Edit - is this controversial? It’s simply a fact that some men do that, throughout history, in almost all cultures, hence the entire topic... Sometimes units of soldiers are even formed from criminals.
It is probably insignificant for most wars, but it isn't uncommon in history. For example, throughout ancient Chinese history, it was common for bandits to serve in army either after they had surrendered or when government paid them to fight (mostly because these bandits knew the terrain well and had strong combat experience). Many of the bandits were rapists and killers, as one would expect.