Why do alligators not live in Alaska?

Because the weather is not appropriate for them, there is not the correct habitat, they could die there, there's not the type of food It's supposed to be.
The primary reason is that alligators are cold blooded, like all reptiles. In very cold conditions they cannot maintain a sufficiently high body temperature to remain active. Thus they would be unable to feed and they would die.