In fact, the wealth gap was smallest (relatively) at the end of the 1940s and 1970s, both decades with the most inflation in the 20th century. It all depends on the power of labor vs capital. That's why capital has fought so much against unions - if you bring back unions, inflation can return and it can benefit the lower classes at the expense of the rich.