In the new snapshot 20w17a it was made that you can change gamerules when creating a new world, but you can do this even if cheats are not enables with gamerules where it doesn’t make sense that you can and on bedrock edition and console edition you are also unable to do this.
How to reproduce:
Go to Create New World button in menu.
Go to gamerules.
Try to change a gamerule like for example spawn mobs.
You can do this without any issue even if you try to create a new world.
Thank you for your report!
We're actually already tracking this issue in MC-179837, so I've resolved and linked this ticket as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki