Basically this is due to the fact that cosmic and fairytale are both in the special category. Pulling up one will show all others in the special category even if they're not able to be in the same habitat. If you check the star section in the dragon and habitat section you'll see the ones that are special. With these ones it's important to msnually check that the dragon and habitat element match.