It is an order from Allāh ﷻ to not argue with the ignorant. Today there are so many ignorant and stubborn people. It will do no good to argue with them and you will just feel angry and sad. It is also a divine order to keep yourself safe and away from danger.