After millenniums of war and chaos, the autobots flee from Cybertron because their lifelong enemies the decepticons reached the core of the planet and initiated the planet's self-distruct system.
Soon after, a planet-wide evacuation was announced and not long after, several handful of autobots managed to escape along with a few other decepticons in hot pursuit.
The Autobots crashed on Earth first. It's almost been a year since then. We've managed to peacefully coexist...