Florida’s panhandle used to be much longer.
This didn't last for long though, since this part of Western Florida would be annexed into the Mississippi Territory, and then shortly after, it would be broken up into Mississippi and Alabama.
This left Alabama with this tiny coastline, and Florida a much shorter panhandle. But even this almost became a part of Alabama.
Follow the money...