Historically philosophy was the pursuit of knowledge in general.
Science grew out of that, as the empirical study of the world.
Science is a way of studying knowledge.
Distinguishing between them, as universities do, is somewhat arbitrary, but mainly reflects the way they are taught. 'Philosophy' today is mainly taught as the 'history of ideas', thus it gets lumped in with other kinds of 'History' as one of the humanities.
To imply that they are separate in some real way, is to imply that scientists don't use reason and logic, and aren't interested in gaining knowledge. Something that is obviously false.