What is a logical to think that something inherently inhuman will think or act like us. it may understand our actions and out psychology but it may develop truly different feelings from us.
Hopefully we dont treat them racistly. As we normally do with those who come and take our jobs.
You are right, hence the reason why Musk is worried and why the developing of AI needs to be taken as something serious. Because it will happen one way or another, its up to us if this ends up being something good or bad for us.
I think it will be good, because technology innovations always tend to bring more good than bad.