Mario didn't put it there! When he dropped his items the ghosts put them in hard to get palces so Luigi couldn't find them. That star is most likely one of the 120 from the castle.
I''m the leader of the Koopa Bros.We''re hip and cool and uh... we like bacon