Ama is formed due to the hypofunctioning of Jathragni, leading to poorly digested food (Anna Rasa) which further vitiates Vata, resulting in various complications, including joint pain and inflammation.