Let's ask an expert!
"What is music? Anything can be music, but it doesn't become music until someone wills it to be music, and the audience listening to it decides to perceive it as music.
Most people can't deal with that abstraction -- or don't want to. " - F.Z.
So following the logic: because the overwhelming majority of people perceive rap as music we can universally agree that it is music