Yeah, they are used for unit tests and can be handy for add-ons.

For example, you might want to have a visitor that re-visits JSON (or XML) to fetch some additional data off of them. getXml() and getJson() allow such visitors to exist and work on the original document.