Samsung makes terrible laptops which is why they basically fell out of the laptop game, and LG doesn't make great laptops but they're decent relative to Samsung laptops.
Both manufacturers make display panels, but Samsung has terrible color science and LG is quite decent up there with Sony. LG has very specific OLED panels that they make very well but they also outsource from Samsung for a variety of their general products and some of their non flagship TVs.
There's like a weird dynamic of filling each other's plates.
For the first time, Samsung Display will be supplying OLED panels to LG Electronics for use in its upcoming 2023 Gram Style laptops. Besides the bright OLEDs with fast refresh from Samsung, the unique notebooks offer glass-covered bodies and stealth illuminated touchpads for the style-conscious fans of the thin and light LG Gram laptop line.