Near the end of the story, Moses leaves the farm after Mr. Jones is exiled. A couple of years after his leave Moses returns still lazy around the farm, but he still goes on about Sugarcandy Mountain. Moses will chatter to anyone who will listen while at the same time, he is being kept on the farm only because he keeps the animals hopes up for Napolean. So in a sense he is being used and played for a fool. On the farm Napolean, the bossy pig, uses Moses to preach to them about Sugar Candy Mountain and keep their hopes up throughout the days on Animal Farm as humans do.
People often use religion to make sense of things and keep themselves hopeful in life.
Moses fits into place on the allegorical level as Grigori Rasputin, friends of the Czar and Czarina who isn't particularly loved by the public.