If you're looking for a "general" rationale, a team is entitled to what ever advantage/benefit they accomplish without fouling, but are NOT ENTITLED to any benefit/advantage gained, even legitimately, that follows them fouling.
As suggested above, keeping possession requires that you obtained it with "clean hands".