I think you have to be "in combat" to gain experience for heals. Healing up afterward doesn't seem to help.
Yes I think you have to be in combat. Just like when you conjure armour, you only get exepriance if it's in combat and not out of combat. No proof of this, but just from what I read and then it makes sense as I am playing.