Miratech interview question

Why are the wait and notify functions inside the object class.