If brakes were not applied, the car would have come down with acceleration. Hence, application of brakes is preventing this acceleration, i.e., brakes are putting frictional forces on the wheels. The work being done by these frictional forces shows up as heat.