Let $R$ be the event that a red ball is drawn. Let $U_i$ be the event that urn $i$ is used. Then
$$P(R) = P((R \cap U_1)\cup(R \cap U_2)\cup \cdots \cup (R \cap U_6)).$$ The events $(R \cap U_1), (R \cap U_2), \dots$ are mutually exclusive, so the probability of their union is the sum of their probabilities.
So $$P(R) = P \Big( \bigcup_{i=1}^6 (R \cap U_i) \Big) = \sum_{i = 1}^6 P(R \cap U_i) = \sum_{i = 1}^6 P(R \mid U_i) P(U_i),$$ as required.