Why do pigeons coo?

Pigeons coo when they are happy. Don't get it mixed with an owl going coo coo. If pigeons feel bad the make a different noise.