Here's why this is a subordinate clause:
* It contains a subject ("it") and a verb ("was raining"). This makes it a clause.
* It begins with a subordinating conjunction ("because"). This means the clause cannot stand alone as a complete sentence. It depends on the main clause ("we stayed inside") for its full meaning.
Let me know if you'd like to see more examples or have other questions!