but in the 20th century realist historical paintings fell from critical favour
I noticed this too. It's my favourite style but it kinda disappeared during interbellum.
Always wondered if the invention of photography has something to do with it. But it's probably hard to attribute zeitgeist to a single thing.