I have the same problem. If you want to stop it there are adhesive stickers you can apply to the glass to increase the likelihood of birds detecting it's a solid object.
Interesting. I didn't know about this. Here is an example: https://featherfriendly.com/
They work! Ive been using them for over 10 years