A millilitre is another name for a cubic centimetre
NIST treats the millilitre as a special name for the cubic centimetre, and prefers the symbol L for the litre so it is not mistaken for the number one. A converter that equates mL and cm³ is following that definition, not taking a shortcut.

If a measuring cylinder is marked in millilitres, and a workshop drawing is marked in cubic centimetres, it is tempting to look for a conversion factor. There is not one. The two names are for the same volume.
The U.S. National Institute of Standards and Technology says this on its official units of volume page. “Milliliter (mL) is a special name for the cubic centimeter (cm³).” In the same list of common units: “1 cm³ = 1 milliliter (mL).” A 10 mL mark on the cylinder is 10 cm³ of liquid. A 250 mL kitchen jug is 250 cm³. The unit converter on this site is not inventing a convenience when it treats those as equal. It is following the definition.
The litre works the same way, one step up. NIST says: “Liter (L) is a special name for the cubic decimeter (dm³),” and “1 dm³ = 1 liter (L).” Because 1,000 cm³ make one cubic decimetre, it also follows that “1000 mL = 1 L.” That is why a space and volume calculation that returns cubic centimetres can be read in millilitres without a further sum, and why a result in litres can be read as cubic decimetres.

The symbol is worth getting right, because the official page spends time on it. “The symbol for the liter is uppercase letter ‘ell’ (L) is preferred to avoid the risk of confusion between the lowercase letter ‘ell’ (l) and the number one (1).” NIST adds that “the script letter l is not an approved symbol for the liter.” In print, a lower-case l next to a 1 is easy to misread. That is why you will see 5 L or 250 mL more often than 5 l on a careful instrument, and why this site follows that preference.
None of this makes the litre an SI base unit. As a litre is accepted for use with the SI, but it is not an SI unit already explains, the litre is a special name that is accepted for use with the International System. The cubic metre is the SI unit of volume; the litre is a convenient name for a thousandth of that, which is a cubic decimetre. The millilitre is the same idea, one thousand times smaller. The official status of the name does not change the volume.
A unit is an agreed comparison, not the particular jug or cylinder in your hand. The marks on the plastic beaker are useful only because the millilitre already has that agreed meaning. If two tools disagree, it is the tools that need checking, not the fact that a millilitre and a cubic centimetre are the same size.
Sources
- SI Units: Volume, National Institute of Standards and Technology. The millilitre as a special name for the cubic centimetre, the litre as a special name for the cubic decimetre, the equalities 1 cm³ = 1 mL and 1,000 mL = 1 L, and the preference for the symbol L over l or a script l.