Boyfriend help

Why do I hate being with my boyfriend but then when he’s gone I miss him????