There are four possibilities:
- To get the kingdom of Hastinapura and become kings.
- To take revenge for Draupadi's insult.
- To uproot adharma from society and establish dharma.
- They had no clue and were doing only what Krishna told them to.
Lets examine each of these one by one.