It might make more sense if you know that heterosexuality isn’t a monolith. Most hetero people aren’t given to self-examination or discussion of how sexuality works for them (because society convinces them subconsciously that they have no need to) and thus project their vague sense of how it works on all other het people.
Some het men are attracted to people with vaginas. For some their sexuality is primarily tied up in a breeding fetish. For some their sexuality is heavily influenced by smell and/or pheromones. Some are gynephilic - a term with multiple definitions depending on context, but in this case meaning an attraction to femininity but not necessarily women. (This is not necessarily purely straight, depending on the person, but people like that tend to identify as such regardless.) Some are “heteroflexible” (mostly straight, but a little bit bi) even if they don’t know the term or are not yet aware of this. Some have a nebulous sexuality but are heteroromantic. Some might be indifferent to genitalia if they’re not transphobic and not interested in children, or even have a bit of phallophilia. Some might be a deeply closeted gay or bisexual person and might consider messing around with a trans woman to be a “safe” way of exploring their sexuality without giving up their hetero identity. (This is definitely not straight but they are indistinguishable from straight from the outside.) There may be more that I’m not aware of. People are all different.
There can be a mix of things, too. The one straight-identifying man which I personally know who is dating a trans woman says that he’s attracted to women in a difficult-to-define abstract sense but is much more into their personality than their appearance, which seems like kind of a hybrid of “genital indifferent” and “gynephilic”.