Outline how the cognitive approach in psychology would explain a driver's decision to immediately pull over after hearing an unfamiliar rattling sound from their car engine.