The brain does not truly multitask; it switches rapidly between tasks, and each switch has a cost. Divided attention means information is poorly encoded, so it is never stored well in the first place.
Single-tasking during important moments — a conversation, a lecture, reading — dramatically improves what you retain. Memory begins with attention.