Let's say I've got 2 different fields $a, b$ and I want to compute its covariant derivative $D_\mu = \partial_\mu + iA_\mu^a T^a$ where $\{A_\mu^a\}$ is the set of gauge fields and $\{T^a\}$ the algebra of the corresponding group under which $a$ and $b$ transform. Then,
$$ D_\mu(ab) = \partial_\mu(a)·b + a\partial_\mu b + iA_\mu a b = (D_\mu a)b + a\partial_\mu b = a(D_\mu b) + (\partial_\mu a)b, \quad A_\mu \equiv A_\mu^aT^a \tag1$$
So first of all we see an ambiguity because I can place $D_\mu$ either on $a$ or $b$. Nonetheless, we see something worse: the term in right hand side that goes with the partial derivative does not transform as the left hand side under the group because $(\partial_\mu a)b$ is not transformed into $U(\partial_\mu a)b$ while $D_\mu(ab)$ does.
An alternative expression for Eq. (1) would be to consider that Leibniz rule holds. In that case, left and right hand sides would transform in the same way, but how is that compatible with the definition $D_\mu = \partial_\mu + iA_\mu$ that leads to Eq. (1)?