We had a bullfinch that came to the kitchen window ( Spring) and would peck away at the window in a frenzy. One day it even left a small smear of its blood on the window - we then discovered that it may have been pecking at it's own reflection so I stacked some books on the kitchen window sill.
Maybe your bluetit sees his reflection and a possible "mating threat".