They're only banned in the gen 8 meta game if you go back to gen 7 you can use mega evolution and z moves again. The reason the new metagame does not allow mega evolutions is that the new games, sword and shield don't have them in the game, instead we have dynamax.