Well the answer is pretty obvious
Imagine this in your mind
A dedenne pokemon a stunfisk and a pikachu are all standing out in a field of grass but are not aloud to move for the sake of this test
They all are electric type pokemon with the ability to absorb electricity
But heres the important and differing strengths/weaknesses of each
Pikachu is a Steel/Electric type
Stunfisk is a ground/Electric type
Dedenne is a fairy/Electric type
They all are Electric types but they also all have different type moves therefore increasing or decreasing thier resistance to type moves of opponents in which are either super effective against or not very effective
Also theres weight difference and the fact that some pokemon train more then others and evolution, z moves, mega evolution and other factors in play in the Pokemon universe.
Its Confusing but basically its many factors that have to be taken into account in a pokemon battle all at once