I think it is there to do both.
The driver is part of the team, F1 is not and never has been just a drivers championship, indeed there have been many discussions on the fact that any one of the top ten drivers could win if they were in the top car.
Good teams and drivers use the rules to their advantage and minimise the penalty and take all the penalty points at once. A bit like a shoplifter up before the beak and asking for another 49 offences to be taken into consideration when passing sentence.
Last year in Belgium Hamilton started in 21st place after loads of engine penalties and finished 3rd.
The team are not normally responsible when their car crashes due to driver error, but also take the hit in the constructors table.