Why z-index doesn’t work even though you set z-index: 99999;

Why z-index doesn’t work even though you set z-index: 99999;