Why do cassius and brutus take their own lives at the end of the tragedy of julius caesar?

Why do cassius and brutus take their own lives at the end of the tragedy of julius caesar?