A fire needs 3 things to start. Heat, oxygen and a combustible material. That's called the Fire Triangle.
Eg.
Food left cooking and cooking over a hot stove
Battery made by a dubious factory overheating.
That's what caused the fire, to answer your question.
Now the other question is who caused the fire.