The distinct stellar-to-halo mass relations of satellite and central galaxies: Insights from the IllustrisTNG simulations