Sometimes we hear the following expression in various contexts:
Diese Antwort hat aber herzlich wenig mit meiner Frage zu tun.
Erwin hat herzlich wenig zum Erfolg unseres Projekts beigetragen.
Heute Nacht habe ich herzlich wenig geschlafen.
Why do we use "herzlich" here? Is there anything known on the etymology of this combination?