To make the story to come to life, to add the mood to the text for the reader.
The Authors use historical times and events to make the story seem more believable even though its fiction.
Go to the workhouses and the ill poor folks should just die and decrease the surplus population