The prof may not have had money at the time you asked him (the start of the semester.) Then a grant was awarded later and he hired someone else who also may have expressed an interest. The OP wants to blame the prof for something (seeing “something wrong with that behavior”) when again this might be more about being in the right place at the right time.