There are two styles of spoken Japanese---polite and plain. /ohayou/ is a plain-style greeting used in a casual conversation between friends and peers. Both speakers here are using the same level of politeness.
2
Dialogue 2: Good morning between a student a teacher ▲