Received iPhone 5 texts from husband in my email??

I recently received a text message convo between my husband and a friend of his.
They were texting each other but the texts were also received in MY email account. Instead of an email address it had the phone numbers listed where the email address would normally be.
He has an iphone5 and I have an iPad which was not updated at the time.
Anyone know how this happened?
Sharing apple id's?
Yes. I am not very savvy- so sharing an account means these flukes just happen?
Sharing iCloud address? Bad idea.
Well I just checked my iCloud settings and currently everything is off. But when this happened my iPad was not updated and had no iCloud settings. Is this something he needs to remedy in his settings or both? Or does it not matter since we are on same account? Thanks for the replies- I am a novice!

Original thread: https://forums.imore.com/threads/received-iphone-5-texts-from-husband-in-my-email.249678/