When it's all broken down to the core, it's emcing and dj'ing that makes rap. Ofcourse you can have emcing and dj'ing seperately, but thats just how it used to be. Check Grandmaster Flash.
It's just evolved through the years, Rappers used to 90% of the time have a DJ. G Rap/Polo, Kane/Cee, Ra/Eric, Fresh/Jazzy Jeff.. Now-a-days the DJ is reserved specially for touring and live shows, and the beats are made from "producers" which in term in hip-hop are descendents from those DJ's.
Rap is hip-hop music, no matter the quality it's just how it's done and sounds then it comes down to opinion on whats hot and whats not. Subgenre's cloud peoples judgement of whats rap and whats hip-hop, well it came from the same seed so it's the same tree. Hip-hop on an overall picture is more then rap, B-Boying Grafing Djing all fall into it.
peace.