I am missing something but I can't see what, hopefully someone can help.
Suppose we have a connection $H$ in priciple $G$ bundle $G \rightarrow P \rightarrow M$. Than $TP=H \oplus V$. Sections of $H$ are locally spanned by lifts of vector fields on $M$. Lie bracket of lifts $\hat X, \hat Y $is a lift of a lie bracket $\hat{[X,Y]}$. In consequence one would obtain that $H$ is integrable since any two sections from $\Gamma(H)$ are written as cobination of lifts (locally) and their barcket is than combination of that lifts and their lie brackets which are in $H$.