GlobalBlock extends DatabaseBlock, but does not use any of DatabaseBlock's database functionality, since global blocks are not stored in the ipblocks table.
A GlobalBlock is created via a hook handler for UserIsBlockedGlobally, which runs in User::getGlobalBlock.
The GlobalBlock object appears to be used for custom block error messages. We could probably use a SystemBlock instead for this.
See also T257701: Add global blocks into CompositeBlocks rather than treating them separately.