Standard Roman numerals go up to 3,999 (MMMCMXCIX). Numbers 4,000 and above require non-standard extensions.
Subtractive notation (like IV for 4 instead of IIII) was adopted for brevity and to avoid confusion in written records. It became standardized in medieval Europe.