Perhaps you were more curious and interested. You certainly weren’t more knowledgeable.
Or working with better people, particularly those setting the requirements. The worst code I've written/worked with has always come about because of unclear/unstable requirements.