Why did the Apatosaurus devour the factory?

Because she was a plant eater!