Shares of Hewlett Packard Enterprise Co fell 6 percent on 22 November after Chief Executive Officer Meg Whitman’s decision to step down from the role took Wall Street by surprise.

Meg Whitman. Reuters.

Whitman, one the most high-profile executives in the United States, said on 21 November she would quit as CEO in February and hand over the reins to company veteran Antonio Neri.

After reports surfaced that she was being considered for the top job at Uber, Whitman reinforced her dedication to the role in July by saying that she was fully committed to HPE and planned to remain CEO.

"We have a lot of work still to do at HPE and I am not going anywhere. Uber's CEO will not be Meg Whitman," she had tweeted.

On 22 November, Whitman told CNBC that talks with Uber had not been a factor in her decision to leave HPE “at all.” ‍​

But her move caught analysts off guard. HPE is in the middle of a restructuring to cut costs, invest in research and focus on high-margin businesses. Its mainstay server business has been struggling as customers increasingly buy non-branded, assembled servers that are much cheaper.

“We are surprised by the timing of the CEO transition given commentary at the recent analyst day that seemed to imply a CEO transition was not in the offing,” BMO Capital Markets analyst Tim Long said in a research note.

Long, however, added that Neri’s experience running the company’s Enterprise Group made him a strong fit for the CEO role.

The restructuring, which was announced last month and called HPE Next, was supposed to be led by Neri, a computer engineer who has spent more than two decades with the company and is HPE’s current president.

Neri’s appointment is not a surprise given his increased visibility in recent months, Morgan Stanley analyst Katy Huberty wrote in a research note.

Neri began his career in Hewlett Packard as a customer service engineer in the EMEA call center. He previously led HP’s technology services business and then its server and networking businesses, before taking over the whole Enterprise Group in 2015.

Since its split from Hewlett-Packard in late 2105, HPE has spent billions buying companies providing cloud software and data storage to better position itself to serve customers who are moving their operations to the cloud.

HPE’s shares have risen 5 percent this year, compared with a 16 percent gain in the S&P 500 index. They were trading at $13.28 in early trading on 22 November.