The moonwalk—popularized globally by Michael Jackson in 1983 (Motown 25)—is technically a breakdancing / gliding technique, not a core hip-hop step. Its roots trace to 1970s Bronx street culture, where dancers like Bill "Mr. Wave" Bailey, Jeffrey Daniel (Shalamar), and the Electric Boogaloos developed backslide/gliding variations within the popping and locking traditions.
Hip-hop dance (as a codified studio style) emerged later, incorporating elements from breaking, popping, locking, and social dances. The moonwalk was adopted into some hip-hop choreography, but its mechanics—creating the illusion of forward motion while sliding backward—belong to the breaking/popping lineage.
So: Moonwalk = breaking/gliding technique. Hip-hop = broader cultural/style umbrella that may include moonwalk as borrowed vocabulary. The distinction matters for historical accuracy and technique pedagogy.