Quick answer : electrons are a liquid, but you can replace them with fake electrons which behave like they were in a gas, so both formulations are correct and meaningful.
Now for a longer answer.
Indeed, the valence electrons in (most) metals form a state which is closer to a liquid than to a gas. This liquid of interacting electrons is called a Fermi liquid (because electrons are fermions).
On the one hand, electrons have to respect Pauli exclusion principle. The Hamiltonian describing the electrons has eigenstates corresponding to different energies, and the fundamental state of the system is obtained by filling these states with electrons, from the lowest energy to the point where there are no electron left. The object you get is called a Fermi sea, the surface of which (called the Fermi surface) separates filled states from empty states.
On the other hand, when you want to describe the electrons in a metal, what you really want to do is to describe some properties of them, typically their conductivity, which characterizes their response to an electric field (applied e.g. by a voltage source). It appears that to describe a lot of such properties, only the "elementary excitations" of the system are needed. Landau theory of the Fermi liquid shows that in a wide range of systems these excitations happen only near the Fermi surface, where you can create, for example, an electron-hole pair (see e.g. this answer), which behave like particle (e.g. an electron), even if they are in fact a complicated mix of all electrons. Such objects are called quasiparticles, and I can now get to your question : these quasi-particles behave like almost free particles, and as such, they form a gas. Quasi-electrons, for example, have the same charge than an electron, but not the same mass, because of all the interactions between real electrons, so you can describe a metal like a gas of "electrons" with some effective mass, and forget about all the underlying description. Hence the name.
Now, beware : even if this Landau theory of the Fermi liquid is extremely efficient, it does not always work. When interactions between electrons are strong, this descriptions breaks down, and you get more complex yet more interesting physics (Mott insulators, Luttinger liquids, etc.).