I don't think necessity is the mother of invention. Invention, in my opinion, arises directly from idleness, possibly also from laziness - to save oneself trouble.
I shall despair. There is no creature loves me;
And if I die no soul will pity me:
And wherefore should they, since that I myself
Find in myself no pity to myself?