What makes the beggar work for Sergei?
The beggar does not work for Sergei because he is hungry or needs work. He agreed to work simply from pride and shame. He is also convincing Sergei of his innocence by following him. In this way, he avoids the police also. He has been trapped by his own words. That is why he agrees to work for Sergei.