If a drunk girl is raped at a party and someone says "Oh, she shouldn't have been so drunk," this is classed as blaming the victim.
If my house gets burgled and someone says, "You shouldn't have left all the doors and windows wide open when you went out," it isn't classed as blaming the victim, and 99% of people would think I was an idiot for not locking up my home.
In both cases raping and burgling is never okay so neither the sobriety of the girl nor the security of the house is relevant.
Why do people regard one situation as victim-blaming and the other not, even though the same logic applies to both scenarios?