Intel’s naming convention on consumer parts is relatively easy to grok, as it’s been much more consistent for the last 12 years than their server/workstation parts.
Breaking both down we have 3 things to take note of:
i5/i7 - indicates relative performance or feature set within a given generation, bigger is generally better
13/7 - the generation of processor
600/700 - where Intel rates a given processor within a generation, this is consistent and doesn’t (to my knowledge) involve overlap between i3/5/7/9 - generally bigger is better.
So i5-13600 is a thirteenth gen i5, type 600. i7-7700 is a seventh gen i7, type 700
Then you get the legion of letter suffixes determining other features, mobile SKUs etc.