"Because" is a subordinating conjunction that introduces a dependent clause (in this case, "she needed groceries") and indicates the reason or cause for the main clause (in this case, "She went to the store").