Though in Zelda bombs are a plant. They just grow like that. There are also enemies that are bombs, and magic exists to create bombs. All of which have been used as canon explanations for the bombs in the games.
Just to expand on this: in the Zelda series it differs from game to game. In some games they are bomb flowers (e.g. Tears of the Kingdom, also Wind Waker if I remember correctly), in other games they appear to be man-made and are bought in shops (e.g. Ocarina of Time, Twilight Princess, I think?) and are presumably conventional bombs with gunpowder as you mentioned. I don't remember any game where bombs are an enemy like you said, but I'll take your word for it. I haven't played every game.
I don't remember any game where bombs are an enemy
OoT also has the bomb flowers. You have to blow up the large boulder blocking Dodongo's cavern by throwing a bomb flower from the cliff and then in the cavern you get the bomb bag to start carrying bombs.
What is "an explosion, even"?
Something getting really big really fast, or so I heard from Beakman.
If you mean the classic black ball with a wick, they were pretty much hollow cannonballs filled with gunpowder and a wick. You'd light the wick, run, and the gunpowder would explode, flinging shards of cannonball everywhere.
What is cannonball made of tho?
Iron
Cannon
Lines of code
don't forget 3D models or 2D sprites, depending!
I don't know anything about Pokemon canon, but you know LoZ has bomb flowers, yeah? In some games there's no such thing as a "bomb" that's distinct from a bomb flower.
What bombs in Pokémon? Geodude and a few others have Self Destruct, but I do not recall bombs.
Team Rocket threw them while up in their escape baloons a ton
I would imagine if nothing else, gunpowder.
Bombs are older than guns.
Though in Zelda bombs are a plant. They just grow like that. There are also enemies that are bombs, and magic exists to create bombs. All of which have been used as canon explanations for the bombs in the games.
Just to expand on this: in the Zelda series it differs from game to game. In some games they are bomb flowers (e.g. Tears of the Kingdom, also Wind Waker if I remember correctly), in other games they appear to be man-made and are bought in shops (e.g. Ocarina of Time, Twilight Princess, I think?) and are presumably conventional bombs with gunpowder as you mentioned. I don't remember any game where bombs are an enemy like you said, but I'll take your word for it. I haven't played every game.
Bombchus!
Ocarina of time also has bomb flowers. Majora's Mask has these guys called Real Bombchus as for the bombs for enemies
https://static.wikia.nocookie.net/zelda_gamepedia_en/images/8/80/MM3D_Real_Bombchu_Model.png/revision/latest?cb=20220122001305
OoT also has the bomb flowers. You have to blow up the large boulder blocking Dodongo's cavern by throwing a bomb flower from the cliff and then in the cavern you get the bomb bag to start carrying bombs.
What is "an explosion, even"?
Something getting really big really fast, or so I heard from Beakman.