Context. Superluminal motion has been found to occur in many kinds of celestial bodies with the relativistic ejecta, especially for some active galactic nuclei (AGNs), gamma-ray bursts (GRBs) and micro-quasars, although these objects are largely different in their lifetimes, sizes and features. Aims. To investigate the discrepancy in above inhomogeneous objects, we have compared the apparent superluminal motion of GRBs with AGNs, both of them being cosmological outbursts. In addition, properties of the superluminal motion between different subclasses of AGNs (e.g., Radio galaxies, BL Lac objects, and Quasars) are also compared in detail.Particularly, we focus on two low luminosity GRBs, namely 060218 and 170817A, that are ultra-long and short bursts associated with supernova and gravitational wave respectively. Methods. For these, statistical methods including linear regression analysis, linear correlation and K-S test have been used. Antitheses and theoretical analysis of models are also adopted to contrast between AGNs and GRBs, as well as their individual subgroups at aspect of theory and observation. Results. The apparent transverse velocity (β app ) of Swift and pre-Swift GRBs are tightly correlated with the Doppler factor δ as β app ∝ δ 0.5 , while all AGNs distribute around the line of β app = δ behaving a weak correlation of β app with δ . In contrast, β app is positively correlated with Lorenz factor (γ) or γ 2 (1 + z) −1 , not for GRBs but for AGNs. β app and 1 + z are independent for neither GRBs nor AGNs, but apparently exhibit a positive correlation of β app with 1 + z from AGNs to GRBs, showing a cosmological effect of evolution with redshift. I also found that GRB 170817A and GRB 060218 are outliers of the above correlations. Conclusions. Superluminal properties of GRBs are significantly different from those of AGNs. However, there are no obvious differences between radio galaxies, BL Lac objects, and quasars in terms of their superluminal motion. In despite of radiation mechanism, beaming effect and cosmological expanding would play the same roles on the superluminal motion for AGNs and GRBs.