Both spells have a verbal component when casting them, but they can both be cast from 90 feet away, possibly from stealth or while the creature is distracted, so it may not notice the casting.
I'm sure the creature would feel the disadvantage to the chosen ability from Hex (would feel/be clumsier if Dexterity is chosen, or short of breath and tired if Constitution is chosen, etc), but might not know the cause. And would an actual mark appear on the target if Hunter's Mark is cast on it?
Would they maybe need to pass an Arcana check (or passive check, maybe) to discern/notice what's affecting them?