You can format an SD card using Windows, Mac, and Android devices, and likely your digital camera too.
The iPhone (or iPad) might be the camera you always have with you, but many people still carry a snapshot or higher-end standalone camera for other reasons: compactness, interchangeable or zoom lenses ...