Because Those Death Stars are Expensive, That's Why

At least that's the only reason I could see for Darth Vader robbing a bank. Also why does Darth Vader need a gun?