A large number of unknown people from the general public have been in contact with the dine-in table. Only a handful of kitchen staff are in contact with surfaces involved in preparing takeout.
Eating at home is still a better idea for the reasons you state, but takeout is an acceptable if less-ideal alternative.