Recent iphone locked apple ID

Hello: Recently, after a while of not using my iphone, I return to it with an Apple ID request to enter my password and the next notice I get is that my iphone is locked and to type in my recovery code. I follow thru all the steps and continue to use my iphone. Anyone experiencing this issue often? It’s happened a couple of times in the last week.