To get some intuition, we can draw some parallels between physics and probability science!
In physics, mass is the weight over gravity:
$$m=\frac{W}{g}$$
In probability science, the probability of a discrete random variable is:
$$P(A)=\frac{n(A)}{n(all)}$$
For example, in the experiment of tossing a fair six-sided die, the probability of getting a $5$ is:
$$PMF(X=5)=f(X=5)=P(X=5)=\frac{n(5)}{n(all)}=\frac16$$
So, the weight (W) is analogous to the number of ways an event A can occur (n(A)) and the gravity is analogous to the sample space (n(all)).
In physics, density is the mass over volume:
$$\rho = \frac{m}{V}$$
In probability science, the probability of a continuous random variable over some interval is:
$$P(a\le X\le b)=\int_a^b f_{X}(x)\, dx$$
For example, let the bus waiting time be uniformly distributed: $X \sim [10,30]$. The probability of waiting between $15$ and $20$ minutes is:
$$P(X<15)=\int_{15}^{20} \frac{1}{20}\, dx=\frac1{20}\cdot (20-15)=\frac14=0.25.$$
So, the mass is analogous to the interval ($[a,b]=[15,20]$) and the volume is analogous to the entire range ($[c,d]=[10,30]$).
In general, the term "probability distribution function" can be used to imply either probability mass function (for discrete r.v.) or probability density function (for continuous r.v.).