Bud rot happens when too much moisture and heat are concentrated on the bud. Mold loves dampness and heat. Could be from too much rain or overwatering.

I've heard that water curing will remove the mold and allow you to smoke the affected bud.