Why and how do firms give on-the-job-training to their workers?

Firms give on-the-job-training to enhance the productive skills of the workers so as to enable them to absorb new technologies and modern ideas.
It can be given in two forms :
(i) The workers may be trained in the firm itself under the supervision of a senior and experienced worker.
(ii) The workers may be sent for off campus training