We can find via dimensional analysis that the dimension of the electric charge varies with the dimension of space-time $(D+1)$: $$[\text{charge}] = (\text{eV})^{(3-D)/2}.$$ It is dimensionless if there are three spatial dimensions ($D=3$). You can see below the way I did it. The question is: Why does this occur? What is the meaning of this?
I'm using the Heaviside-Lorentz Units with Natural Units ($\hbar = c = 1$) so that all dimensions can be expressed in energy ($\text{eV}$).:
$$ \begin{align} [x] &= [t] = (\text{eV})^{-1}\\ [p] &= [E] = \text{eV} \end{align} $$
Using the action from Maxwell theory $$ S = - \frac{1}{4} \int d^{1+D} x F^{\mu \nu} F_{\mu \nu} $$ and making a dimensional analysis, $$ \begin{align} [S] &= [x]^{1+D} [F^{\mu \nu}]^2\Rightarrow\\ 1 &= (\text{eV})^{-D-1} [F^{\mu \nu}]^2\Rightarrow\\ [F^{\mu \nu}] &= (\text{eV})^{(D+1)/2} \end{align} $$ Then using the inhomogeneous equation $$ \partial_\nu F^{\mu \nu} = J^\mu $$ and making an dimensional analysis $$ \begin{align} [\partial_\nu] [F^{\mu \nu}] &= [J^\mu]\\ eV eV^{(D+1)/2} &= [J^\mu]\\ [J^\mu] = (\text{eV})^{(D+3)/2} \end{align} $$
Now lets look the charge dimension. The relation of the charge with the $(1+D)$ density current is
$$[J^\mu] = \frac{[\text{charge}]}{[x]^D}$$
So, $$ \begin{align} (\text{eV})^{(D+3)/2} &= (\text{eV})^{D} [\text{charge}]\\ [\text{charge}] &= (\text{eV})^{(3-D)/2} \end{align} $$
We get that only in $3+1$-dimensions the charge is dimensionless. If we are at $1+1$, and at $1+5$ charge is just like time.
At another place I was told that it (dimension of charge) have relation with the renormalizability of QED. And that the fact that charge is dimensionless only in $3+1$ is related with Maxwell equations being conformally invariant at $3+1$.