Pregunta de entrevista de Tech Mahindra

why do we have jar,war,ear why not one file structure?