It looks like you moved the selected face down with “g”. In that case surrounding geomety stays connected and will get angled like in your screenshot.
Instead of moving you need to press “E” to extrude the face downwards. That creates new geometry and you will get the rectangular shape.