These figurines called "Caganers" ("Shitters" ) are a tradition in the Catalunya, (northeastern Spain) and are apparently displayed among other Christmas displays during the holiday season. [bing.com]
Somebody had the idea, somebody approved the molds, somebody painted them, somebody priced them, and people bought them.
My hopes for humanity are in the shitter!