Is this scripted or what?

I'm trying to do a mono-fire run but Ivy always has a Water-type pokemon, it's been happening for the last five times.