To change status from one nonimmigrant category to another, one needs to be in a valid nonimmigrant status when the change is sought.
The information contained in this answer is provided for informational purposes only, and should not be construed as legal advice on any subject matter,not should it be viewed as establishing an attorney client relationship of any kind.
She can file for a change of status with the USCIS. She does not need to leave the country.
The herein content is for general informational purposes only, and may be predicated on incomplete facts. It should not be relied upon in making legal decisions or assessing your legal rights or risks. Neither does the herein reply create an attorney-client relationship.