In WoW Classic, a quest will automatically appear in the tracker only when you complete an objective towards the quest, and you have Automatic Quest Tracking enabled. To enable this option open the Main Menu (ESC), click on Display, and check Automatic Quest Tracking.