We put a zero before a decimal primarily to avoid confusion and to emphasize the fact that it is a decimal number. Some also do this to make the number reflect how it’s said.
For example, when we write 0.25, we are saying zero point two five, but if we wrote just .25, it would look like we’re saying point two five. Including the zero helps to clarify the number.