Why is it important for India to develop self-reliance in the defence sector, and what obstacles might hinder this goal?

The Defence Minister said India cannot afford to depend on foreign defence supplies. I want to understand the significance of self-reliance in defence and the main challenges India might face in this journey.