The primary reason you can lose weight by drinking coffee is because caffeine increases your metabolism. With a higher metabolism, you will burn more fat throughout the day. This increase could be as much as 11% as demonstrated in scientific studies. Furthermore, the chlorogenic acid in coffee reduces the amount of carbohydrates you absorb from your food.
The following infographic from Authority Diet gives you more information on how drinking coffee can help you burn fat and lose weight.