Formula vs milk

Why do we need to transition LO from formula to milk? And what age is the right one? What difference will it make if we continue formula until 2yrs old?