The most fitting response is: to give a feeling within the piece that all elements are working together in a similar manner.
Artists often use harmony to create a sense of unity and coherence in their artwork, allowing different elements to support and complement each other, leading to a more effective and aesthetically pleasing composition.