Not only were there tons of Class M planets, they were usually populated by hot chicks in 60’s miniskirts, and Captain Kirk took every opportuinty to become very familiar with the indigenous life forms.
It’s amazing Kirk never ended up with lots of alien STDs.
Well, Yeah.