Foreign government officials choosing Microsoft is not always the result of Microsoft been the best option. Sometimes, little bit of bribing helps.
"Microsoft is paying more than $25 million to settle federal corruption charges involving a bribery scheme in Hungary and other foreign offices."
https://apnews.com/article/f6852284a2154ac5ab422d51495c4056
Trump government now makes bribing more useful.
https://apnews.com/article/fcpa-bribery-trump-antibribery-la...
That and marketing. Libreoffice is like buying a Honda Civic, I guess? It works, it's boring, it's cheap, nobody ever sees it advertised on TV. Many people see the ads for cars on TV and go and buy the expensive sexy car they saw on TV and don't shop around.