This is because you are using a DG space. See: Dirichlet Boundary Conditions for Discontinuous Galerkin (DG) Methods - #4 by nate and the subsequent posts on how to apply Dirichlet conditions for such methods.
1 Like