This might happen if you don't beat any levels for 6 months. If this happens, the leadership is transferred to the next person who joined the team after you (as long as they're active), or to the deputy if there is one.

Unfortunately, it is not possible to return the leadership in these cases.