(Reuters) - Shares of Hewlett Packard Enterprise Co HPE.N fell 6 percent on Wednesday after Chief Executive Officer Meg Whitman's decision to step down from the role took Wall Street by surprise.

FILE PHOTO: Meg Whitman, President and Chief Executive Officer, Hewlett Packard Enterprise, attends the annual meeting of the World Economic Forum (WEF) in Davos, Switzerland, January 18, 2017. REUTERS/Ruben Sprich/File Photo

Whitman, one the most high-profile executives in the United States, said on Tuesday 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. (bit.ly/2jesxl9)

On Wednesday, 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.

Barclays analyst Mark Moskowitz and Morgan Stanley’s Huberty expect Neri to shift gears and aggressively develop technology in-house, rather than focus on mergers.

Since its split from Hewlett-Packard in late 2015, 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 .SPX. They were trading at $13.28 in early trading on Wednesday.

(This version of the story was refiled to fix typo 2105 to 2015 in penultimate paragraph)