@DeltaMac's is correct. The 2009 iMac is too old to support Internet Recovery.Like much of the info in this thread, this, also, is wrong. High Sierra and Mojave boot drives have a recovery partition as long as you used the correct OS installer.
https://support.apple.com/en-us/HT202313