Since the late '90s Pokémon has been a beloved and popular franchise, and while befriending NPCs and catching Pokémon is a major part of the whole experience, battling is the ultimate aim of the game. There are many core components that make battling so fun in Pokémon, but type matchups are the overriding factor in determining a battle's difficulty.
Source:https://www.cbr.com/pokemon-type-attack-effectiveness-logic-explained/