Punjab and Bengal had areas of hindu / muslim majorities. These 2 states were split accordingly. The split, however, was not always fair. But by and large, Congress and League followed the agreed principal.
The resulting human tragedy (of fleeing, driving out, crime) is a different issue.