Some people may even tell you this is because they can't hear themselves so they don't know they are barking.
The truth is that dogs bark! It is a trait specific to dogs.
There is another truth involved here, and that is that you CAN teach a deaf (or blind/deaf) dog to be quiet when asked.