It's an exclusive to the Demon Queen child path manual that you get from an Immortal who eternally hungers in a strange Hell dimension that allows you to eat your Devil piece by piece to gain attributes if you succeed. The more devil breaks you have the stronger your devil and the more times you can eat him before he vanishes. Each successful meal grants +3-5 attribute points in all stats except charisma I think.
But about the soul damage - I think it's obviously an analogous process to muscle growth. When you train you cause micro-tears and damage to your muscle tissue and that prompts the body into rebuilding them stronger (not exactly but that's the popular simple explanation), but if you damage them too much, suppose you tear or pull a muscle, it will be too damaged to repair itself quickly enough to cause gains while you rest and may even leave permanent damage, leading to you overall becoming weaker.
So yes damage to the soul is good but in controlled and small amounts - just enough for your soul to grow back stronger but not enough to leave a lasting/permanent wound.