WordPad in Windows 95 was a demonstration of how to use the rich-text editing component built into Windows. Its C++ source code came bundled with MFC (Microsoft Foundation Classes - programming library for making Windows apps using C++) as a sample.
The fact that it was a useful tool for end users was essentially just a side effect.