Communist propaganda. Some sources assert that the ending of  the story was altered by the CIA (in the book, the pigs and humans  join forces) to press home their message, but it is equally possible  that the more upbeat ending of the movie was an artistic decision,  to give the film more audience appeal.