I think you refer to the network fundamentals lab?
H1 and H2 are routers. In labs, we use routers as hosts or servers all the time. If you disable IP routing with no ip routing your router no longer builds a routing table and it will act as a regular client, which requires a default gateway if you want to exit your local subnet.
You can also use a router as a “server”. For example, you can use DHCP server or you can enable HTTP server. You can even use telnet to connect to TCP port 80 so you can use it as a HTTP “client”.
For simple connectivity, this is great. This way you don’t have to deal with Windows/Linux hosts. For more complex testing such as with iPerf, it’s best to use Windows/Linux hosts.