They get it from this map, but they are slow to update and could be running with data from a couple years ago.  The map is already correct.

But actually reading the map and knowing which road you are on and therefore what speed limit is an issue with your tesla, not the map.