2 points
If he doesn’t know what spell you’re casting, that means that he’s even more likely to assume that you are trying to cast an harmful spell, making him attack you. And casting a spell takes an action, basically a third of your turn if you want, so the hobgoblin has at least 2 seconds to react, if not more. And thats plenty of time to stop himself from jumping.