Why is it generally believed that contemporary psychology has its roots, or origins, in philosophy?

Why is it generally believed that contemporary psychology has its roots, or origins, in philosophy?