Yucca plant developed brown spots

Hi, I have had this yucca plant for many years, it blooms beautifully every year, but since last year it developed very ugly spots , especially the bottom spikes. It started cutting them off, but I am not sure if…