Don't confuse 'line' outputs with headphone outputs, they are completely separate. XLR is just a type of connector, it is usually used for balanced connections, but it's not a 'balanced connector'.
Balanced 'line' outputs will often use two 3 pin XLR connections to provide a balanced stereo connection. For headphones, it more usual to see a 4 pin XLR connection used for 'balanced' connections, but you will also see 2.5mm TRRS, 4.4mm Pentaconn and sometimes 2x 3 pin XLR.
Here's a good article explaining the differences between balanced and unblanced (AKA single ended) and 'line' and headphone connections...
https://www.soundguys.com/balanced-vs-unbalanced-connections-60085/
My Topping EX5 has a 'balanced' 4 pin XLR headphone connection on the front. However, its wired the same as the 1/4" jack and does not provide a differential signal to the headphones. The 'balanced' connection is just there for convenience for those that have headphones with 4 pin XLR plugs on them. I built a 4 pin XLR to 2.5mm TRRS adapter so I could use the XLR socket for my IEMs...
The days are getting shorter and the nights are closing in, so it's project time... I want to plug my IEMs into my EX5. I have Moondrop Starfields with a 2.5mm balanced cable from Linsoul - the Starfields are usually connected to my Earstudio ES100. I'd like to use the 4 pole XLR connection...
www.audiosciencereview.com