Partly this is because of the way primaries work here (they are open and there is no “official” party-backed candidate).
Anyway, there is nothing stopping a candidate from claiming they prefer a party that they don’t actually hope to represent.