Those are two different styles of numerals. The first is tabular figures, which are mono-spaced, and designed for accounting/spreadsheet purposes.
The second is called lining figures, which are an update on old-style figures, and are proportionally spaced.

