The first thing you need to understand is that there are two different ways of measuring the age of the Universe since the start of the hot Big Bang.
We can find “the oldest thing we know how to measure its age” and conclude that the Universe must be at least that old.
We can use what we know about the theory that governs the Universe, general relativity, as well as our knowledge of what the Universe is made out of plus how fast it’s expanding today to calculate how long it’s been since the start of the hot Big Bang. Ref: How we know the Universe is 13.8 billion years old - Big Think

