First, $A\cap B$ and $A \cap \bar B$ are disjoint. This means that $(A\cap B)\cap(A \cap B) = \emptyset.$ In other words the two events contain no common outcomes; they can never occur at the same time. To see this, note that every outcome in $A\cap B$ is in $B$ and every outcome in $A\cap \bar B$ is in $\bar B$. Since $B$ and $\bar B$ have no common elements by definition, nor do $A\cap B$ and $A \cap \bar B.$
Second, $(A\cap B) \cup (A\cap\bar B) = A.$ This is because $A\cap B$ has all elements of $A$ that are also in $B$, while $A\cap \bar B$ has all the elements of $A$ that are also in $\bar B.$ Together (their union), the contain all elements of $A$ since all outcomes are either in $B$ or $\bar B.$
If two events $C,D$ are disjoint (which means they can't happen at the same time) then the probability of their union (either C or D happens) must be $P(C\cup D) = P(C) + P(D).$ You can either get this from your formula $P(C\cup D) = P(C) + P(D) - P(C\cap D)$, or reason that since only one of them can happen, the probability of either of them happening must just be the sum. (You can also derive the whole formula intuitively by drawing a Venn diagram).
So since they're disjoint, $$P(A) = P((A\cap B) \cup (A\cap\bar B)) = P(A\cap B) + P(A\cap\bar B)$$
The facts used in the derivation were
$$
P(A\cup B) = P(A) + P(B) -P(A\cap B)
$$
and
$$
P(A) = \sum_{i-1}^nP(A\cap D_i)
$$
where $D_i$ are disjoint events with $\sum_i P(D_i) = 1.$ And that $B$ and $\bar B$ are disjoint $$P(B) + B(\bar B) = 1.$