On the origin of critical temperature enhancement in atomically thin superconductors