The concerns voiced here apply to Bluetooth in general, not to iPhone alone. Bluetooth has been around for a long time, and due to its widespread use, has also received substantial attention attention from security experts. For example, here's the Security section from Wikipedia's main Bluetooth article:
8 Security
Different kinds of Bluetooth devices use different, standard Bluetooth protocols. The protocol for speakers (A2DP - advanced audio distribution profile) does not include the ability to transfer contact data. The transfer of contact data requires PBAP - phone book access profile. PBAP triggers specific security protocols within iPhone (a higher level of security than if A2DP alone was in use).
Here's what Apple's iOS Security Guide
https://www.apple.com/business/docs/iOS_Security_Guide.pdf has to say:
PBAP requires encrypted data, and the mobile device provides the encryption key necessary to decrypt contact data stored in the car system. When the mobile device is not present, the data cannot be decrypted. This safeguards data that may be "left behind" in a rental car.
That's not to say some clever people couldn't create a "wolf in sheep's clothing" (appears to be a Bluetooth speaker but is more than that). However, even if a trojan horse was built, the people of Troy would be asked (in effect), "Do you want to roll a wooden horse full of Greek soldiers into the city?" At that point, it ceases to be a trojan horse, and becomes simple foolishness on the Trojan's part.