It is not the main agenda of D&D, but certain amount of it is assumed as a default. Earliest editions were rather bad at it, but that is not necessarily by choice rather than the designers were still figuring out things. But yes, this spawned other games that did it better. 3e has a lot of...