Recent market gains can be attributed to the outlook for earnings growth. And some of that expected earnings growth can be attributed to what’s arguably the most unexpected development in the corporate world over the past two years: The resilience of profit margins.