According to Jared Diamond. Free time is the mother of invention: just curious people fucking around. Necessity is the mother of adoption and capitalism is the mother of distribution.
But most technology is not made because it was needed or profitable, but because someone clever and curious and with enough free time wanted to make it to scratch their creative itch.
Need and profit come hand in hand afterwards.