It's because you haven't given it a type or anything, it is just an empty variable. As far as the compiler is concerned, it see it as:
export var thing
and because there is no default value nor static type hint, it has no idea if it's a boolean, a float, an int, or anything else.
I would recommend using static typing to help indicate what the value is. For example, since it looks like it's a float, I would use:
export (float) var set_speed
# Or
export var set_speed : float
# Or (not sure if it will work)
export (float) var set_speed : float