Not unusual for an illegitimate child to make up a fathers name when they married so as to appear "respectable"
However - as it appears Jane was also illegitimate you have to wonder at his reasoning?  The only other explanation was that his biological father was called Thomas but not surname Carter.