Why did he put "a" before "happy birthday"?
In this case, "happy birthday" is a countable noun, so the determiner "a" is added in front of it. "I hope you have a x" is commonly seen in greetings or when wishing someone well. Ex: I wish you a Happy New Year! Ex: I hope you have a lovely holiday.