This seems to have been prompted by Greek Philosophy beginning about 600 BC. This is most pronounced in the teachings of Plato, specifically his Theory of Forms in Plato's cave allegory.
In Plato's theory, εἶδος (eidos) represents the "Visible Form" while, μορφή (morphē) represents the "shape". Additionally, within Greco-Roman philosophy, there were also the φαινόμενα (phainomena), "appearances" which underwent significant philosophical discussion.
In Plato's allegory, Plato asks Glaucon to imagine a prisoner in a cell in a dungeon or cave. Out of view of the prisoner is a light source. This light source illuminates an object - again out of view of the prisoner. The prisoner in the cave is only able to see the shadow cast by the object:
In terms of the Allegory, the εἶδος (eidos) is the object or vase while the μορφή (morphē) is the projected image of the object, or the shadow of the vase.
As Wikipedia notes,
The English word "form" may be used to translate two distinct concepts that concerned Plato—the outward "form" or appearance of something, and "Form" in a new, technical nature, that never
...assumes a form like that of any of the things which enter into her; ... But the forms which enter into and go out of her are the likenesses of real existences modelled after their patterns in a wonderful and inexplicable manner....
The objects that are seen, according to Plato, are not real, but literally mimic the real Forms.
So in terms of God, the form of God as it appears to us (where we are the prisoner in Plato's cave) is the μορφή (morphē). This term acknowledges that our ability to view God is imperfect, and we are not capable of truly seeing God fully and directly. In trinitarian thought, the incarnation of Jesus might be thought of in some contexts as μορφή (morphē) - as Jesus, that was how God was able to appear to us.
Conversely, God's true form could be thought of as εἶδος (eidos). It holds the concept of God's true and actual form which we lack the ability and perspective to view properly due to our humanly limitations.
The Bible books of John and Philippians appear to reference this as do many other passages, I am sure:
who, though he was in the form [morphe] of God, did not count
equality with God a thing to be grasped (Philippians 2:6 ESV).
And the Father who sent me has himself borne witness about me. His
voice you have never heard, his form [eidos] you have never seen,
(John 5:37 ESV)
Similarly, the Holy Spirit at Pentecost might be thought to be the φαινόμενα (phainomena) of God.
So, how do we get from form to substance?
The obvious problem for the philosopher here is that if Jesus is merely the form (morphē) of God, then he is not truly God. If Jesus is form (morphē) then he is not εἶδος (eidos). If the holy spirit is a φαινόμενα (phainomena) then she is not εἶδος (eidos).
This presents a problem for the Trinitarian scripturally, with Jesus's claims to be God.
This can then easily be corrected by asking "well, what if Jesus, the Holy Spirit and God are different forms, but are all of the same substance?" What if Jesus is but is a different form (morphē) of God, but is ὁμοούσιος (Homooúsios) as God?
While Aristotle was known for using the term οὐσία to describe his philosophical concept of Primary Substances, the term ὁμοούσιος (Homooúsios) is first used by the Gnostics to describe their doctrine of Emanations, a concept that supported the idea of Aeons - a Panentheistic idea that we all worship the same God which simply appears in different forms (but these gods are also ὁμοούσιος [Homooúsios] or of the same substance as God). In contrast Sabellianism believed that God was singular and not triune, while Gnosticism taught god was polyune. According to Sabellianism, God is only one indivisible being and nothing can be of the same substance as God - he can only be taking on a different role or mode when he acts as the Holy Spirit or as Jesus.
From this context, we can easily see how we arrive at the Arian Controversy after this issue was raised and brought to the public attention by the Gnostics and philosophers. With this background in place, it is clear that when the language of Plato's Theory of Forms is used to describe Jesus as a form of God, it lends itself to the idea that Jesus is not God, but is merely a shadow or projection of God - not God himself. The language and concept of οὐσία therefore became necessary for the Trinitarians to explain both how Jesus could be both a form of God and BE God.