That describes how Android handles applications, keeps one in foreground and others in background.
When close the foreground app (e.g. assistant), then Android returns to home screen.
Screen lock disables the touch screen, can see its feature topic for more details.