The Vienna Government successively suppressed the Prague and Galicia rebellions. When word reached Hungary, the opposition led by Kossuth couldn't sit still.
From the current situation, it's clear that the Vienna Government had no intention of compromising with the Revolutionaries; it was repression after repression, especially the bloody suppression in Galicia, which had many people shivering in fear.
Ludwig von Benedek, who was responsible for suppressing the Galician rebellion, directly allowed the locals to retaliate against the Nobility and capitalists, and most of the over 20,000 people who died were killed by the public.
The Vienna Government couldn't possibly execute over 20,000 people at once; Franz wanted to save face. For the long-term stability of Austro-Poland, using others to eliminate these reactionary elements became the only choice.