Before the universe became transparent, charged particles scattered light. The cosmic microwave background records the later release of that light, now stretched to microwave wavelengths.
More distant light usually shows an earlier era. A lookback time is a duration; present-day distance also depends on expansion while that light traveled. Those two numbers are not interchangeable.