It’s some of that, yes, but I think the Scouring of the Shire was more specifically about Tolkien expressing his fears about industrialization in Britain after the wars, and using this as a way to bring the conflict home to the characters on a deeply personal level.
And that’s a good message for a book, but not at all cinematic to have an extended cleanup after the main conflict has ended. Peter Jackson understood that at least.