MUSEQuBES CGM Surveys: From Low-z Star-forming Galaxies to High-z Lyman-alpha Emitters