If you erased the whole drive for Windows, then you also destroyed the local recovery partition. You will either need access to another Mac from 2008 to 2015 in order to create a bootable macOS 10.11 El Capitan USB installer using the instructions in this Apple article (read the instructions very carefully as there are multiple steps to extract the installer from the downloaded .dmg before you can use the Terminal app):
How to create a bootable installer for macOS - Apple Support
If you don't have access to one of these Macs, then you will need to reinstall macOS 10.6 Snow Leopard from DVD. However, you need to be careful since some 2009 Macs shipped with macOS 10.6 which means that Mac would need the original gray DVD which shipped with the laptop from the factory (the gray DVD will only work with a single model Mac). If the laptop originally shipped from the factory with macOS 10.5 Leopard, then you will need to use the retail version of the macOS 10.6 Snow Leopard DVD.
I'm sure you realize now that you should always have a plan in place on how to reinstall the OS before completely wiping an OS from a computer.