As he states in the video,
"The expectation of $q$ goes away on this last term here because there's no $q$ here."
The expectation $\mathbb{E}_q$ is with respect to the randomness in $z$ which follows the distribution $q$.
Since $\log p(x)$ has no $z$, it is deterministic/constant, so the expectation can be dropped.
Edit for clarification: throughout the derivation, $x$ is constant. However, $z$ is a random variable. In the derivation above, the density of $z$ is $q$. [Note that it is important to clarify this because $z$ can follow other distributions. For example, in the latent variable model the distribution of $z$ is $p$, not $q$.]
So, $\mathbb{E}_q[z]$ is just the expectation of $z$ when it follows the distribution $q$. More generally, for any function $f$, $\mathbb{E}_q[f(z)]$ is the expectation of $f(z)$ when $z$ follows the distribution $q$.
For example, you begin with $\mathbb{E}_q[\log p(z \mid x)]$ which is a special case where $f(z):= \log p(z \mid x)$.
Now, if $c$ is some constant (deterministic, does not depend on the random variable $z$), then $\mathbb{E}_q[c]=c$. This is the case here with $c=\log p(x)$; since $x$ is constant, $\log p(x)$ is a constant.