Dear student!
In physics, heat added to system =+ve, heat removed from system = -ve
So, work done on the system = -ve
work done by the system = +ve
While, in chemistry,
work done on the system = +ve
work done by the system = -ve
This difference arises due to the nature of process we adopt, as in physics we use an equation, dQ = dW + dU
While in chemistry we use dU = dQ + dW
Actually, in physical processes, the change in volume is considered and so dQ is ositive while in chemical processes the change in internl energy is considered because particles are microscopic and there occurs the chemical reactions and so the dU is positive.
This, difference brings difference in sign convention.