In reality, some units really need talents. Training a talent may cost a lot of money and the establishment is limited. If you stay, you won't be able to recruit other people. And some people just want to grab the cost of job-hopping in this company and don't plan to stay for a long time. Some units actually want to retain talents on the grounds of paying training fees. But this is an unreasonable charge, but if you want to stay in that unit, you may have to accept this unreasonable request.
I don't know about you. What is the situation of this company? Discuss it with your family and experienced people.
Answer with your heart. If you can, please adopt it. It needs your approval.