Here's why:
* Pleasant is an adjective, describing a quality.
* Pleasantness is the noun form of that quality, making it an abstract noun.
Think of it like this: "The weather was pleasant" describes a feeling, while "The pleasantness of the weather was enjoyable" focuses on the quality itself.