EM and gravitational waves are seen as analogous because as I wrote, they are produced by acceleration of charges and masses, respectively. The physics behind them is very different (described by Maxwell’s equations for EM and Einstein field equations for GW), but all systems that have waves in them (including sound in the air, waves on the surface of water etc.) can be approximated as linear for small perturbations, which means that they satisfy the wave equation at that regime.
That may be relativists (they would actually measure anything in units of mass, with everything else defined through G = c = 1). Astrophysicists commonly measure mass in solar masses, long distances in parsec (or kiloparsec, megaparsec), short distances in solar radii or AU, and time in whatever is relevant to their problem (could be seconds or gigayears)