It is canon that the transformers first arrived on earth millions of years ago. It is totally plausible that there are lots of them scattered about which haven't been discovered. Also, if not the moon, they would simply have been reinforcements from Cybertron.