Many modern soundbars feature side-firing and up-firing drivers, as well as compatibility with Dolby Atmos and other profiles, which can help to replicate the immesion of surround sound to some degree. For causal or space-limited use cases, this may be sufficient. That said, you will still get the best experience with a ‘true’ 5.1 or 7.1 surround sound setup.