It reduces the lifespan of the drive.
SSDs are rated for a number of writes, after that they deteriorate.
Defraging an SSD causes unneeded writes and wears the drive.
Now all things considered, I do not believe that it is the end of the world if you accidentally defrag your SSD, but you...