Doesn't Batman, Superman, and Wonder Woman also know magic, so what? What you should be saying is how powerful they are with their magic compared to them.
Batman would probably be the first to die, and if rimuru can use gluttony on superman and copy his abilities it's kinda over since he'll be even stronger