The Puerto Rico government is corrupt and inept and Democrat. They stole the money to be used for the power infrastructure, allowing it to deteriorate. When the hurricane hit, a great deal had to be rebuilt, almost from the ground up.
Of course, Puerto Rico did not want to pay for anything. They had already stolen or wasted the money on their cronies and special projects.