It is just the Principle of Inclusion and Exclusion.
Consider the quadrants on a Venn Diagram : $~{\bbox[blue]{\Box}~\bbox[white]{\Box}\\\bbox[purple]{\Box}~\bbox[red]{\Box}}$
$$\def\P{\operatorname{\sf P}} \begin{align} \P((X,Y)\in(a;b]{\times}(c;d]) & =\P(\Box) \\[1ex] & = \P\left({\bbox[blue]{\Box}~\bbox[white]{\Box}\\\bbox[purple]{\Box}~\bbox[red]{\Box}}\right)-\P\left({\bbox[blue]{\Box}\\\bbox[purple]{\Box}}\right)-\P({\bbox[purple]{\Box}~\bbox[red]{\Box}})+\P(\bbox[purple]{\Box}) \\[1ex] & = {\P((X,Y)\in(-\infty;b]{\times}(-\infty;d]) \\-\P((X,Y)\in(-\infty;a]{\times}(-\infty;d]) \\ -\P((X,Y)\in(-\infty;b]{\times}(-\infty;c]) \\+\P((X,Y)\in(-\infty;b]{\times}(-\infty;c])} \\[1ex] & = F(b,d)-F(a,d)-F(b,c)+F(a,c)\end{align}$$