That’s the point. You’re employed locally and do work for the remote company.
If you don’t want to work as an employee, then you can enter into a contracting relationship, but employers tend to avoid this because there’s always the risk that the local government determines the contractor is actually an employee and taxes are owed.