You're playing in Debug mode. You can use all HMs without needing a Pokémon that knows it in Debug mode. It works as expected in the actual game, where you need a Pokémon that knows the move to be able to use it.
Do you think such an obvious thing wouldn't have been spotted and fixed by now, if it was broken?