iPhone can send iMessages without a SIM card?
iMessage can also register email address (like your Apple ID), that's how it works on iPad and iPod Touch.

So it's completely normal to be able to send iMessages with an SIM-free iPhone.

As long as you are connected to a WiFi network.