BAE Systems interview question

Why would you use smart pointers over raw pointers?