It is sometimes said that in ancient Greece the distinction between science and philosophy had not yet been made.
The evidence seems equivocal.
My impression is that this holds truer of philosophers than of philosophy,
in the sense that the same individuals did both philosophy and science, and of the distinctions between particular non-philosophical
subject areas and what would be the related kind of philosophy.
Though there was science (of a kind) there were no scientists (as distinct from polymaths engaged also in philosophy) and
there was no clear distinction between science and philosophy of science.
The case of metaphysics is slightly different, especially in Aristotle, but also in Plato (and probably elsewhere as well,
but these two will suffice for us here).
The term metaphysics appears first (so far as I am aware) with reference to
Aristotle, and is the name given (though not by Aristotle himeself) to the volume which appears in his works after his volume
on Physics.
Aristotle has a different name for the subject matter of that volume, which is "first philosophy".
In Plato before him, the central task of the philosopher is the contemplation of forms or ideas, and this without the name
may be thought of as a kind of metaphysics (though not very close to Aristotle's conception).
Now this seems to me, especially in Plato but also in Aristotle in a different way, a kind of
pure rather than applied philosophy.
Both philosophers discuss these areas as if they were delineating true philosophy rather than separating out a particular
kind or part of philosophy.
Though Plato's ideal of a philosopher-king is someone with the knowledge and wisdom needed to run the state, this does not
mean that philosophy itself is conceived as extending across all the knowledge that such a philosopher-king would need to
have.