That may happen because the edge of your glass is connected to something.
In a situation like this:

you wouldn’t want it otherwise.
It could be that you can’t see that the edge is connected, but it probably is. (For instance when you have your edge (not yet filled), E, Escape, Grid Fill, E….)