Different in theme as table and page
The code $build['pager_pager'] = array('#theme' =&gt; 'pager'); returns the pager for the table.

The example module output with that line of code:



The example module output without that line of code:



If you are not seeing the same difference I am, it might be a cache issue, try clearing your cache between changes.