God's purpose for music is to bring people closer to Him. Music is a way of connecting with God and His people. In this sense, it's a spiritual gift given by God for the benefit of mankind. As humans, we have an innate need to connect with others in some form or another.