Right, it is a hardware limitation to satisfy current laws regarding motorized bicycles.
Swapping controllers, displays, etc and making the bike faster than 20 mph would make the bike technically illegal to operate on bike paths, bike lanes, etc. Depends on your locale, of course, but here in...