OK, so why the NY taxes were withheld?
Did you provide any services in NY?
The company provides you a workplace in NY and that is considered your job location. Thus your income is considered from NY sources and is taxable for NY. You would need to file NY income tax return as a non-resident.
As you are a PA resident - all your income is taxable in PA despite its source - I am not sure why only part of your income is reported as PA income - I would expect it would be $200. You would need to file PA tax return as a resident and will claim a credit for taxes paid to NY - that will allow to avoid double taxation of the same income. You should attach a copy of your NY tax return to justify your claim.