Cavity-induced quantum cooperative phenomena