Early-type galaxy density profiles from IllustrisTNG – I. Galaxy correlations and the impact of baryons