This is for maximum backwards compatibility as React Hook implementation is only supported in WP 5.2 and above.