We have hummingbird feeders on the porch and, well, hummers would occasionally fly into the windows trying to get inside. Usually they were okay, but we didn't like it. Why did they do this when they had food outside?

I looked around and realized we had a red flower arrangement in the living room, fully in sight of the porch. Put it away, and the thumps stopped.