The rubber degrades over time. It's a safe bet to replace the fuel lines and brake lines after 4-5 years, or earlier, if you notice deterioration.
2 years is kind of early, but it can't hurt.
I replaced all of my brake lines on my '99 with stainless braided stuff after 4 years or so. It's a good upgrade, and made sense.
The fuel lines I think I did after about 3 years, when one of them split.
Of course, somebody will pop in and say they have a 1944 Bandit with all original lines...but, it's cheaper and easier to replace them periodically, at home, when you have access to cheaper parts, than it is to have to do it on the side of the road. They do deteriorate......maybe at a much slower rate in some cases, due to smog levels, exposure to weather, and nit picky maintenance....but they do deteriorate, and fail.