He didn’t care about abortion. He was pro choice most of his life. That was clearly a pandering move and now he is being criticized by the anti abortion crowd because he said he doesn’t think there should be a federal ban.
Republicans used Trump to overturn Roe. Trump himself didn't care at all about abortion and was nominally pro-choice until he decided to run for president
The stuff Trump wanted to do himself he had much less success with.