I think Rafael explained it very well, I just would like to add, that you probably confused these two words because they are pronounced in a very similar way. Also Brazilian native speakers say and write it wrongly, although the meanings are quite different. So, you should pay attention, even when Brazilian people talk to you, because they may be making this mistake.