“Juan se acuesta a las diez de la noche”.

“Maria acuesta al bebé a las siete de la noche”.

In these two sentences, how come there is a “Se” in the first one but not the second sentence?