The choice was between that bill, or the much worse Democratic alternative. That's why Republicans voted overwhelmingly for it, and Democrats overwhelmingly against it.
Ryan repeatedly proposed Medicare and and Medicaid cuts throughout the 2010's, and pushed through the House a bill killing the guts of Obamacare.