She surprised everyone with the veto, then flipped back later after public outrage. Hard to know for sure what was behind it all, but it was the main knock against her running for President herself, until the book came out.
She didn’t simply veto the bill; it was an amendatory veto. She sent it back to be perfected, but the legislature didn’t want to change it.