Not legally, no. There is no law for private employers requiring posting of open positions. None. Zero.
You may well have been. But unless it was because of a protected characteristic (under Title VII) of yours, such as your race, gender, religion, national origion, etc., it is not illegal...