Why does Home Assistant use YAML for power-user configuration?
Most things in Home Assistant are configured through the user interface and you never need to look at a configuration file. For the small number of power-user settings that are still configured in a file, Home Assistant uses YAML rather than JSON or XML because YAML is much friendlier to read and write by hand. There are no commas to forget, no closing tags to balance, and indentation makes the structure of the document obvious.
If you are wondering whether you need to learn YAML at all, see Do I need to learn YAML to use Home Assistant?