I'm not an expert either. But I suspect it might be one of the following:
1. the F-22 has a higher thrust to weight ration than the F-35, meaning the F-22 is more manouvrable.
2. the F-22 has a lower wing loading than the F-35, again making the F-22 more manouvrable.
3. the stealth on the F-35, while good against the radars of 20 years ago, might be a lot less effective against the radars of the future, for example long-wavelength radars with lots of ground-based sensors all tied together with sensor fusion. This is a big deal since the F-35 is expected to stay in service until 2070 and I'm sure the Chinese and Russians are looking at ways to counter it.