When Star Wars was filming The Last Jedi, for example, the island with the porgs, Skellig Michael, was a wildlife preserve that was covered in birds and that was the real reason why porgs were created for the film.
Digitally removing them wasn’t really an option, so porgs were born, for better or worse.
This may sound like a comedy bit, but in reality it’s not the first time a movie set has had to take birds into consideration and it’s unlikely to be the last.