What is laryngitis caused by and how did I catch it?

Many causes. Inflammation of the larynx can be due to infections such as bacteria and virus, fungal; other non infectious causes may include :excessive coughing, smoking, over use of vocal cords, acid reflux etc...