This is because PlantUML isnt supported by default, it needs to be enabled: https://docs.gitlab.com/administration/integration/plantuml/
If you're unable to do this because youre not administrator for some reason, consider using Mermaid instead