Shakespeare was born in the Elizabethan Era and would certainly have been influenced by culture of that time.
Shakespeare's birth coincided with the Elizabethan Era, and he would naturally have been affected by the societal values prevalent at that moment in history.