As mentioned, the oats act as a binder, but the other key is to pulse the beans with the other ingredients so everything starts to stick together. You don't want a paste, but you want the burgers to hold together when you form and cook them. Also, make sure that you chop the onions and garlic pretty well even before you pulse them in the food processor, as big chunks will cause the burgers to fall apart.