Hi Lisa! The likely reason the robin is tapping at the window is that it sees its reflection, and since its "that" time of year (birdy luv is in the air), he probably thinks his reflection is competition for his lady friend. Not the brightest bird in the bunch, but dedicated to his wife!