Objects moving at constant velocity in one frame are also moving at constant velocity in the other so both frames can obey the law of inertia.