YAML isn't a markup language, and it doesn't claim to be. The name stands for YAML Ain't Markup Language.
In any case, yaml.org currently describes it as "human friendly data serialization".
I don't think YAML is a bad choice, but HOCON's explicit focus on configuration yields some nice benefits.