Capcom licensed Dynamix's Sid & Al's Incredible Toons engine with a Ghosts 'n Goblins motif, so it is essentially a sequel to that game.
Capcom partnered with Dynamix to utilize their Sid & Al's Incredible Toons engine, which was then adapted into a Ghosts 'n Goblins-inspired game, effectively creating a sequel.