As Sammy points out, you can't be surprised by this. QBs are hard to come by. Very good QBs are needle in haystack. This guy is great and they had to lock him in for years to assure their success.
They probably pulled the trigger so early so that they could keep the price down. Waiting another year for some other QB to sign an even bigger contract would have caused Burrows' price to climb even higher.