That may be the nominal purpose, but the primary function of monetary bail is coercing guilty pleas out of indigent defendants.
There are cases where the defendant is in jail pending trial gets a bail set and can’t afford it, then gets a plea that would result in his release so he takes it...but that in no way is the primary purpose of the bail to force the plea. I don’t think you would ever find such a case where the defendant hasn’t waived their right to a speedy trial. But feel free to link such a case.