Entanglement between particles happens because little particles can push and pull on each other, just like big objects do in terms of gravity. If nothing else is acting on those particles, then there are certain things before and after the particles act on each other that have to stay the same. For example, the total momentum of both particles put together would be (roughly) the same before and after they act on each other.