A battery creates an electric field in the space around it, and the positive terminal is the point where the electric field lines point away from the battery, while the negative terminal is the point where the electric field lines point toward the battery. Electric current is defined as the flow of positive charge carriers in an electric field, so conventionally we assign positive charge to the terminal with the higher electric potential (where the electric field lines point away from the battery).
The convention that the positive terminal is red and the negative terminal is black is also not universal, so for example, in certain types of batteries (e.g. nickel-cadmium batteries), the terminals are red and blue.