You want low coupling (modules depend on each other as little as possible) and high cohesion (a module’s code belongs together). That makes changes safer: fewer ripple effects and clearer responsibilities.