If I had to speak as someone who does not believe, the Trinity does not come from any religious beliefs outside the Jewish/Christian faith. It would merely be a way of reconciling the issue that there can only be one God. The Trinity states that all three are the same God,
But if we walk in the light, as He is in the light, we have fellowship with one another, and the blood of Jesus, His Son, purifies us from all sin.