Duckduckgo.com search engine makes it's money through advertisements on the search engine that are related to the keywords you search for on the duckduckgo search engine.
Duckduckgo.com also makes money through affiliate sales.
I'm sure that duckduckgo makes a heck of a lot of money since duckduckgo gets almost 500 million monthly visits to it's search engine.