what is chemical reactions
Chemical reactions occur whenever bonds are formed or broken between molecules. Why certain atoms combine with which other atoms is a complex question which is explained exhaustively by quantum chemistry. The simple version is that atoms bond together electromagnetically based on the properties of their electron shells.