There are four types of mobs: passive, neutral, hostile, and boss. Passive mobs tend to do nothing except breathe air; they don’t hurt the player when being attacked except the pufferfish. Some mobs can be tamed like wolves and horses; they can also be bred to make offspring, and even villagers can breed to repopulate the village or use them for unpaid labor and farming iron or slaughter them because they don’t have mending books, try going to the swamp biome and try again. Neutral mobs can sometimes be passive or hostile depending on how the player interacts with the mob or where the mob is. Spiders, for example, are not hostile unless it's dark in their area, Piglins won’t attack you unless you’re wearing a piece of gold armor, and Zombified Piglins, if you don’t attack them or expect a 1v5. Hostile mobs go after the player, then they’re near, some carry weapons, some explode, some appear when pulling all-nighters, and then you got the ones that attack you when you look at it, the other when you don’t look. There is one that only appears when being alerted at least three times. Finally, there are only two boss mobs, one at the end and the other where you collect skulls and some soul sand.
Underneath is a picture of all mobs