(I'm providing context, not wishing to engage in political conversation)
I think Uber made a judgement call that the Hungarian government would likely enforce the laws rather harshly, and did not want to deal with the consequences.
[1] https://en.wikipedia.org/wiki/Hungarian_border_barrier
[2] https://freedomhouse.org/report/freedom-press/2015/hungary
The taxi drivers who remained in business were in for the trade-off of investing into compliance with new regulation but making more money than before. So old school taxi was not simply lingering in its naturally backward state as in other countries, but there was an artificially fortified status quo.
In that situation, when value personal transfer reappeared with Uber, it was therefore even more sore for the taxi companies and drivers, who took their position and the protection of their investment granted by the state. So what happened is nothing else just the taxi maffia enforced this grant and the state complied. Both sticking to decisions that once made (no regard of consequences), and heavy state control is quite to the taste of the government -- thus they complied happily.
And once the government puts its weight into something, there is no question it's gonna happen. The only surprise element is that Uber resisted so far.