This might happen if you weren't active in the team for 8 weeks. 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.