Exactly. The company is essentially training you and paying you for the training.

Yesterday I had a similar discussion with a young resident who complained that residents are paid too less. My point was that residents are paid a stipend to learn, and that stipend is higher than salary for many companies. If you are working a lot, that's bcoz YOU chose a high volume institute/speciality, and the extra hours will help you only.