Dogs bark for a multitude of reasons.
He may be barking because of separation anxiety, to establish and maintain territory, due to illness or injury, as a form of alarm, from frustration or seeking attention, as a greeting or as part of a social situation.