People talk in their sleep due to a sleep disorder called somniloquy. It happens during light sleep stages when the brain is partially active. Since it occurs outside deep consciousness, the person usually doesn’t remember talking.
This fact belongs to the general category and contributes to expanding general knowledge. Understanding such facts not only makes you smarter but also helps connect ideas across different fields.