Shirahoshi is an ancient weapon, so he’s right to care about that. But D’s were singled out. D’s are the main opponents of the teneyuubito, and Imu is their leader.
Akainu cares about Luffy’s father but not about the D, which is getting more and more important.