Old tv/movies were 4:3
Modern movies are usually around 2.35:1 to 2.40:1 (~22:9)
Tv makers made 16:9 (16×9) as an in-between so you could display both easily.
Modern tv shows adopted the new, wider format.
To digitize 4:3 film, they chose 480p.
To make tv in 16×9 using 480p for 4:3, you naturally get both 720p and 1080p when you do some math.
HQ is 480p
HD is 720p
FHD is 1080p
QHD is 1440p
4K UHD is 2160p
8K UHD is 4320p.
You’ll find a lot of old YouTube videos (especially music videos) that have HD or even HQ in the title, as YouTube used to only be 320p.
Latest Answers