The most accurate response to why artists and novelists embraced realism over idealism during this time period is:
They wanted to alert people to the harsh lives of the urban poor.
Realism focused on depicting everyday life and the struggles of ordinary people, particularly in urban environments, rather than idealized representations found in previous movements like romanticism.