The CLI doesn't parse the given strings, rather returns them as they are which, for intervals, means the internal format (ISO) is used instead of the desired one (SQL).
The formatting code gets called however since the strings are not parsed, they don't match either as date or interval.