Canned beans are stored in a thick liquid to keep them fresh. If you didn't rinse this liquid off, the final dish would not have the right texture and might even feel a bit slimy.