Plus some SSDs may not even be compatible with such an old system. Most current SSDs utilize a SATA III controller which should be backwards compatible with the SATA I controller in that old G5, however, some SSDs have trouble negotiating the SATA Link Speed with some older SATA Controllers. This is why OWC still makes the OWC Mercury Electra 3G SSD which utilizes a SATA II Controller. As @den.thed mentions, OWC sells everything needed for an SSD upgrade along with a compatible SSD.
I'm surprised that iMac is still running. Those G5 iMacs tended to have huge failure rates with the Logic Boards & Power Supplies due to the Chinese capacitors used in many of those systems which tended to bulge & leak causing power stability issues. Plus I believe many of those LCD Panels developed issues as well.