It is simplyfrom set theory.the basic counting principle

All probability is derived from set theory.

If we have two sets if we want to know how elements are in we count the number in and we count the number in . If we add those together we get an over count because we have counted twice. So subtract.