He seeks Mike out and forces his way into whatever situation he can. Mike doesn't love or need the attention and that's probably why Charlie tries even harder to please him. It's a vicious cycle. We all wish Charlie would attach himself to the kids instead, but he just doesn't.
We all like to think of the irony of their relationship. Charlie has imprinted on the one who wanted him the least. Silly dog.