For what i can understand from how money works in the game is that it entice stronger enemies to invade your dungeon, and that it also gives better items to buy at the market.
For the probability of getting raided seems to be more about how much time has passed without getting raided. So it might be because that since you always get raided or tempt invaders, it lowers its chance of being invaded.