Allah originally prescribed the prayer as two units, both at home and while travelling. The travel prayer remained as it was, while units were added to the prayer performed at home.
حدثنا عبد الله بن يوسف قال أخبرنا مالك عن صالح بن كيسان عن عروة بن الزبير
فرض الله الصلاة حين فرضها ركعتين ركعتين في الحضر والسفر فأقرت صلاة السفر وزيد في صلاة الحضر