Does the Optimization algorithm minimize the loss (binary_crossentropy) or maximize the 'accuracy'?

The algorithm will try its best to minimize loss to increase accuracy. A perfect loss would be 0, so the algorithm wants to get as close as possible to that.