No reason. There are two cases where we don't need/want/care about the replicaset info, so pass in NULL for those arguments here.
Just just as well call mongo_connection_ismaster() like above with the NULL arguments.
mongo_connection_get_server_flags() just calls mongo_connection_ismaster() now with the repl_set_name/nr_hosts/host_found arguments as NULL