Why not cook lentils or legumes in salted water?
Beginner's mistake, a matter of habit, or just a personal preference.
If you salt the water before cooking your legumes, they tend to harden. This isn't really optimal for eating them afterward...
For optimal cooking and texture, it is better to salt the legumes only at the end of cooking.