Factors influencing the emergence of philosophy