There are several potential explanations as to why your dog may bark for what seems like no reason. These include boredom, frustration, anxiety, or excitement. Some dogs do exhibit compulsive barking which is the closest to barking for no reason. This is usually accompanied by pacing.
More useful articles on a similar topic 👇
Is greyhound good for first time owners?What causes a dog to excessively bark?