Swap memory on SUN machines is a file stored on disk. I can magine that the OS tries to keep the changes to the size of that file to a minimum for performance reasons.
PHP frees all it's allocated memory when the script exits.
It might be usefull to check for a newer version of PHP/Apache in case there really is a memory-leak under SunOS.