There are a few reasons why birds might be attracted to security cameras. For one, the camera's lens could resemble a shiny object to them, like a piece of jewelry. Birds are also known to be attracted to bright lights, so the LED light on the camera might also draw them in. Additionally, if there is food or water nearby the camera, that could be another reason why birds are congregating there.
Whatever the reason may be, it's important to remember that security cameras are designed to detect movement. So even though the bird activity might not be harmful, it can still trigger false alarms and cause problems for your home security system.