It's because you're doing it backwards, finding the angle from the mouse to the position, rather than the opposite.
Instead, try this:
$Turret.rotation = get_global_mouse_position().angle_to_point(position)
Alternatively, you can find the direction vector (from tank to mouse) and get its angle:
$Turret.rotation = (get_global_mouse_position() - position).angle()