Out of state student state tax question

We are NYS residents. Our daughter attends college in PA & worked there last year. She earned about $30,000.

She owes tax, but it's telling her that she needs to pay tax in PA & NY.

Why would she need to pay double tax on what she owed. I understand why she needs to pay in PA.