The TRIM command is part of the ATA spec.

The ATA spec defines how hard drives connect to the machine, how they communicate to the system and the OS, etc. So, Windows 7 controls the TRIM feature, but the SSD has to be able to understand the command it's receiving, which is why drives need to be upgraded with TRIM support.
Note that some drives can never be updated for TRIM because they simply don't have the right cotnroller tech.